[jdk25u-dev] RFR: 8368159: Significant performance overhead when started with jdwp agent and unattached debugger

Roland Mesde duke at openjdk.org
Wed Dec 10 19:33:08 UTC 2025


Backporting JDK-8368159: Significant performance overhead when started with jdwp agent and unattached debugger.

This commit replaces the imprecise can_post_frame_pop() check with new has_frame_pops(JavaThread* thread) function for accurate detection of when JVMTI cleanup is actually needed.

Ran related tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

(Passed) - make test TEST=test/hotspot/jtreg/serviceability/jvmti

Results are attached.
[linux-aarch64-specific-test.log](https://github.com/user-attachments/files/24085584/linux-aarch64-specific-test.log)
[linux-x64-specific-test.log](https://github.com/user-attachments/files/24085585/linux-x64-specific-test.log)
[macos-aarch64-specific-test.log](https://github.com/user-attachments/files/24085586/macos-aarch64-specific-test.log)
[windows-x64-specific-test.log](https://github.com/user-attachments/files/24085587/windows-x64-specific-test.log)

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

Commit messages:
 - Backport 17244c699ad20fafe7448678a53266ce6bf017e5

Changes: https://git.openjdk.org/jdk25u-dev/pull/75/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=75&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8368159
  Stats: 24 lines in 3 files changed: 18 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/75.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/75/head:pull/75

PR: https://git.openjdk.org/jdk25u-dev/pull/75


More information about the jdk-updates-dev mailing list