deadlock in initialization of instanceKlass
David Holmes
david.holmes at oracle.com
Sun Mar 25 22:21:46 PDT 2012
On 24/03/2012 1:05 AM, Rémi Forax wrote:
> On 03/23/2012 02:39 AM, Krystal Mok wrote:
>> On Fri, Mar 23, 2012 at 9:19 AM, David Holmes <david.holmes at oracle.com
<snip>
>> A primitive array can be created without having any classes loaded.
>>
>> Ah, I see. That makes sense. So these klasses can be created even
>> before SystemDictionary is initialized, where as well-known classes
>> (such as java.lang.Byte) are created SystemDictionary initialization.
>
> but int[] implements Cloneable & Serializable which both need the system
> dictionary ?
But you don't need those classes loaded to create an int[].
The array class objects can be created prior to the system dictionary is
initialized. They are always created long before the system is ready to
execute any bytecode.
The details are intricate and I don't claim to know them off the top of
my head.
David
>>
>> Thanks,
>> Kris Mok
>>
>> David
>>
>
> Rémi
>
More information about the hotspot-dev
mailing list