RFR(XXS) 8203635: JFR sampler thread does not record stack info

David Holmes david.holmes at oracle.com
Wed May 23 08:43:18 UTC 2018


On 23/05/2018 4:16 AM, Thomas Stüfe wrote:
> Hi Zhengyu,
> 
> looks good.
> 
> I wish it would be like this:
> 
> a non-virtual Thread::run() which does common initialization, and then
> calls a virtual protected abstract Thread::run_impl(), which is
> implemented by child classes...

We already do that - thread_native_entry calls thread->run

David

> Regards, Thomas
> 
> 
> 
> On Tue, May 22, 2018 at 7:57 PM, Zhengyu Gu <zgu at redhat.com> wrote:
>> Thanks for the review, Aleksey.
>>
>> On 05/22/2018 01:45 PM, Aleksey Shipilev wrote:
>>>
>>> On 05/22/2018 07:40 PM, Zhengyu Gu wrote:
>>>>
>>>> Please review this trivial change that added record_stack_base_and_size()
>>>> call to JFR sampler
>>>> thread, so NMT can count it correctly.
>>>>
>>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8203635
>>>> Webrev: http://cr.openjdk.java.net/~zgu/8203635/webrev.00/
>>>
>>>
>>> Looks good to me. I wish this was handled in superclass initialization, so
>>> no one would miss this.
>>
>>
>> Agree! However, it is a bit tricky, as the call has to be made from
>> *current* thread.
>>
>> Thanks,
>>
>> -Zhengyu
>>
>>>
>>> -Aleksey
>>>
>>


More information about the hotspot-dev mailing list