RFR: 8359472: JVM crashes when attaching a dynamic agent before JVMTI_PHASE_LIVE [v3]

Francesco Andreuzzi fandreuzzi at openjdk.org
Thu Oct 16 10:30:32 UTC 2025


> In this PR I add a check to prevent debug builds to crash when an agent tries to attach while the JVM is not in live phase.
> 
> Passes tier1 and tier2 (fastdebug).

Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:

  Update src/hotspot/share/prims/jvmtiAgentList.cpp
  
  Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27766/files
  - new: https://git.openjdk.org/jdk/pull/27766/files/49722e1b..84f168b6

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

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

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


More information about the serviceability-dev mailing list