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

Francesco Andreuzzi fandreuzzi at openjdk.org
Tue Oct 14 08:12:45 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).

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

Commit messages:
 - mv
 - nn
 - mv
 - fix check
 - macro
 - cc
 - nl
 - fix and test

Changes: https://git.openjdk.org/jdk/pull/27766/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27766&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8359472
  Stats: 184 lines in 4 files changed: 184 ins; 0 del; 0 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