what does "LEAF method calling lock?" mean?

Tom Rodriguez Thomas.Rodriguez at Sun.COM
Tue Mar 31 11:07:47 PDT 2009


No you can't ignore it.  You have to use IRT_ENTRY/JRT_ENTRY instead  
of IRT_ENTRY/JRT_LEAF so that the state is setup correctly for a  
safepoint.  Look at all the other places were we call out to allocate  
an object and copy that.

tom

On Mar 31, 2009, at 10:27 AM, Colin(Du Li) wrote:

>
> Thanks.
> Now, I just wanna allocate an object, and the thread state is
> "thread_in_Java", then I got this error.
> How can address this problem? Can i just ignore it?
>
> Du Li
>
>
> Tom Rodriguez wrote:
>>
>> JRT_LEAF methods aren't allowed to acquire locks since they might  
>> have
>> to block.  Leaf methods aren't allowed to block because they aren't
>> set up to safepoint so they could deadlock the whole system.
>>
>> tom
>>
>> On Mar 14, 2009, at 7:55 PM, Colin(Du Li) wrote:
>>
>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/what-does-%22LEAF-method-calling-lock-%22-mean--tp22519628p22519628.html
>>> Sent from the OpenJDK Hotspot Virtual Machine mailing list archive
>>> at Nabble.com.
>>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/what-does-%22LEAF-method-calling-lock-%22-mean--tp22519628p22805245.html
> Sent from the OpenJDK Hotspot Virtual Machine mailing list archive  
> at Nabble.com.
>




More information about the hotspot-dev mailing list