RFR: 8307068: store a JavaThread* in the java.lang.Thread object after the JavaThread* is added to the main ThreadsList [v3]

Daniel D. Daugherty dcubed at openjdk.org
Tue May 2 20:40:21 UTC 2023


> A small fix to store a JavaThread* in the java.lang.Thread object after the JavaThread*
> is added to the main ThreadsList. Also adds the following:
> - `java_lang_Thread::thread_acquire()`
> - `java_lang_Thread::release_set_thread()`
> 
> And uses them on an as-needed basis.

Daniel D. Daugherty has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'JDK-8307067' into JDK-8307068
 - Forgot to checkpoint the use of java_lang_Thread::thread_acquire(thread_oop) in ThreadsListHandle::cv_internal_thread_to_JavaThread().
 - dholmes CR - follow the foo_acquire() and release_set_foo() convention;
   revert a comment change and reformat.
 - 8307068: store a JavaThread* in the java.lang.Thread object after the JavaThread* is added to the main ThreadsList

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13723/files
  - new: https://git.openjdk.org/jdk/pull/13723/files/4b0833ea..ff0faa62

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13723&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13723&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/13723.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13723/head:pull/13723

PR: https://git.openjdk.org/jdk/pull/13723


More information about the hotspot-runtime-dev mailing list