Integrated: 8346143: add ClearAllFramePops function to speedup debugger single stepping in some cases
Serguei Spitsyn
sspitsyn at openjdk.org
Fri Jan 10 23:51:48 UTC 2025
On Fri, 13 Dec 2024 20:50:37 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> New JVMTI function `ClearAllFramePops` will help to speedup debugger single stepping in some cases.
> Additionally, the JVMTI `NotifyFramePop` implementation was fixed to return `JVMTI_ERROR_DUPLICATE` to make it consistent with the `SetBreakpoint` which also returns this error.
>
> The JDWP agent fix will be needed to make use of this new JVMTI function. The corresponding debugger bug is:
> [8229012](https://bugs.openjdk.org/browse/JDK-8229012): When single stepping, the debug agent can cause the thread to remain in interpreter mode after single stepping completes
>
> CSR: [8346144](https://bugs.openjdk.org/browse/JDK-8346144): add ClearAllFramePops function to speedup debugger single stepping in some cases
>
> Testing:
> - mach5 tiers 1-6 were run to make sure this fix caused no regressions
> - Chris tested the JVMTI patch with his JDWP fix of [8229012](https://bugs.openjdk.org/browse/JDK-8229012).
This pull request has now been integrated.
Changeset: 761774a1
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/761774a120f4aa326da3c55a000dacc5549762e9
Stats: 398 lines in 11 files changed: 362 ins; 12 del; 24 mod
8346143: add ClearAllFramePops function to speedup debugger single stepping in some cases
Reviewed-by: cjplummer, amenkov
-------------
PR: https://git.openjdk.org/jdk/pull/22744
More information about the serviceability-dev
mailing list