RFR: 8241403: JavaThread::get_thread_name() should be ThreadSMR-aware
Daniel D.Daugherty
dcubed at openjdk.java.net
Thu Feb 11 22:11:46 UTC 2021
On Thu, 11 Feb 2021 22:07:22 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:
>> A minor fix to add a new function:
>>
>> bool Thread::is_JavaThread_protected(const JavaThread* p)
>>
>> that returns true when the target JavaThread* is protected and false
>> otherwise. Update JavaThread::get_thread_name() to create a
>> ThreadsListHandle and use the new is_JavaThread_protected(). Also
>> update JvmtiTrace::safe_get_thread_name() to use the new
>> is_JavaThread_protected().
>
> @dholmes-ora and @fisk - It looks like both of you are interested
> in this fix. @robehn - This one is Thread-SMR related so you might
> also want to take a look.
@sspitsyn - I'm making a minor JVM/TI tracing tweak here so this
might also interest you.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2535
More information about the hotspot-runtime-dev
mailing list