RFR: 8241403: JavaThread::get_thread_name() should be ThreadSMR-aware [v4]

Daniel D.Daugherty dcubed at openjdk.java.net
Sat Feb 20 17:50:01 UTC 2021


> 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().
> 
> This fix is tested via a Mach5 Tier[1-8] run.

Daniel D. Daugherty has updated the pull request incrementally with one additional commit since the last revision:

  Address dholmes-ora CR1 comments.

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2535/files
  - new: https://git.openjdk.java.net/jdk/pull/2535/files/1401c327..cbb71a20

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2535&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2535&range=02-03

  Stats: 80 lines in 6 files changed: 48 ins; 10 del; 22 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2535.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2535/head:pull/2535

PR: https://git.openjdk.java.net/jdk/pull/2535


More information about the serviceability-dev mailing list