RFR: 8332259: JvmtiTrace::safe_get_thread_name fails if current thread is in native state [v5]
Leonid Mesnik
lmesnik at openjdk.org
Mon Jun 3 01:01:14 UTC 2024
On Wed, 29 May 2024 01:18:57 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> Leonid Mesnik has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - fixed space.
>> - The result is updated.
>
> src/hotspot/share/prims/jvmtiTrace.cpp line 284:
>
>> 282: JavaThreadState current_state = JavaThread::cast(Thread::current())->thread_state();
>> 283: if (current_state == _thread_in_native || current_state == _thread_blocked) {
>> 284: return "not readable";
>
> Nit: I'd suggest to make it more detailed, something like like this:
> "<non-readable thread name>" or "<NON-READABLE-THREAD-NAME>"
@sspitsyn, @dholmes-ora Thanks for the naming suggestion, looks to long in the report. Let me try to use logging and see if it makes sense to make more improvements.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19275#discussion_r1623691234
More information about the serviceability-dev
mailing list