JDK-8372365 : Debugger very slow during stepping
  • Type: CSR
  • Component: hotspot
  • Sub-Component: jvmti
  • Priority: P3
  • Status: Proposed
  • Resolution: Unresolved
  • Fix Versions: 26
  • Submitted: 2025-11-21
  • Updated: 2025-11-21
Related Reports
CSR :  
Description
Summary
-------

Enabling JVMTI `SingleStep` events do not enforce `interp-only` execution mode anymore.

Problem
-------

Enforcing the `interp-only` execution mode to support JVMTI `SingleStep` events causes significant execution slowdown (~20X).

Solution
--------

Do not enforce interp-only` execution mode to support v JVMTI `SingleStep` events. Instead, just deoptimize target frame and disable OSR (On Stack Replacement) optimization on it, so that it is kept interpreted. This allows to execute in a compiled mode other methods recursively called from this frame.


Specification
-------------

N/A - the specification has not been changed.
This may need a Release Note.