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

Serguei Spitsyn sspitsyn at openjdk.org
Wed Oct 22 21:45:40 UTC 2025


On Wed, 22 Oct 2025 08:41:15 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:

>> 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 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 40 additional commits since the last revision:
> 
>  - rename
>  - Merge branch 'master' into JDK-8359472
>  - return value
>  - cc
>  - empty stderr
>  - jvmti errors
>  - indent
>  - close
>  - rephrase
>  - PidJcmdExecutor. unused import. cc
>  - ... and 30 more: https://git.openjdk.org/jdk/compare/a9898f46...1dafec32

Thank you for the updates!

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

PR Comment: https://git.openjdk.org/jdk/pull/27766#issuecomment-3434297489


More information about the serviceability-dev mailing list