RFR: 8319935: Ensure only one JvmtiThreadState is create for one JavaThread associated with attached native thread [v2]

Jiangli Zhou jiangli at openjdk.org
Tue Nov 14 20:57:09 UTC 2023


> Please review JvmtiThreadState::state_for_while_locked change to handle the state->get_thread_oop() null case. Please see https://bugs.openjdk.org/browse/JDK-8319935 for details.

Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:

  Don't try to setup_jvmti_thread_state for obj allocation sampling if the current thread is attaching from native and is allocating the thread oop. That's to make sure we don't create a 'partial' JvmtiThreadState.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16642/files
  - new: https://git.openjdk.org/jdk/pull/16642/files/959305be..c2f83e8a

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

  Stats: 24 lines in 2 files changed: 19 ins; 4 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16642.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16642/head:pull/16642

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


More information about the serviceability-dev mailing list