Re: Race condition in Class.getName()

2009-09-11 Thread Joe Darcy
Martin Buchholz wrote: On Fri, Sep 11, 2009 at 16:48, Joe Darcy wrote: Martin Buchholz wrote: It is believed that the java memory model allows Class.getName() to return null. This is one of those methods with an intentional data race. Probably this has not been seen in practice because

Re: Race condition in Class.getName()

2009-09-11 Thread Martin Buchholz
On Fri, Sep 11, 2009 at 16:48, Joe Darcy wrote: > Martin Buchholz wrote: >> >> It is believed that the java memory model allows Class.getName() >> to return null. >> This is one of those methods with an intentional data race. >> Probably this has not been seen in practice because only >> a perverse

Re: Race condition in Class.getName()

2009-09-11 Thread Joe Darcy
Martin Buchholz wrote: It is believed that the java memory model allows Class.getName() to return null. This is one of those methods with an intentional data race. Probably this has not been seen in practice because only a perverse or adversarial runtime would load the "name" field twice, out-of-