Request for review: Race conditions in java.nio.charset.Charset
Ulf Zibis
Ulf.Zibis at gmx.de
Thu Oct 8 10:07:33 UTC 2009
Am 08.10.2009 06:35, David Holmes - Sun Microsystems schrieb:
> Ulf,
>
> Ulf Zibis said the following on 10/08/09 08:58:
>> For my better understanding:
>> Can you explain me the real bug in
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6881442.
>> In my understanding, loading the "name" field twice is too only a
>> performance bug. Please correct me!
>
> Class.getName() could in theory return null and this is not allowed,
> hence this was a functional correctness issue.
Hm, my problem is, I can't see any condition, how Class.getName() could
return null, except native method getName0() would return null.
But if native getName0() could return null, I can't see how the new code
would prevent method Class.getName() from returning null.
-Ulf
More information about the core-libs-dev
mailing list