RFR(s): 8023541 Race condition in rmid initialization
david.holmes at oracle.com
Thu Jan 30 10:35:35 UTC 2014
On 30/01/2014 5:34 PM, Tristan Yan wrote:
> Hi Stuart
> I didn’t make my comment clear. You set interrupted as true when thread
> gets interrupted. Here it's still going to wait until systemStub is not
> null. Why do you still need interrupt current thread in this case.
Because the golden rule of interrupt handling is you either throw
InterruptedException or you re-assert the interrupted state. This allows
code further up the stack to respond to interrupts.
> Thank you
> On Jan 30, 2014, at 11:24 AM, David Holmes <david.holmes at oracle.com
> <mailto:david.holmes at oracle.com>> wrote:
More information about the core-libs-dev