Stepping in debugger switches to interpretation mode
Severin Gehwolf
sgehwolf at redhat.com
Fri May 31 14:25:18 UTC 2024
On Fri, 2024-05-31 at 14:44 +0200, Maksim Zuev wrote:
> Dear Sir/Madam,
>
> I encountered a problem while debugging the code. I am attaching the
> reproducer to this email in the Main.java file.
>
> When running it with the debugger without stepping, the application
> runs in less than a second (see jdb output in the jdb_run.txt file).
> However, after performing a single step, the application is running
> in interpretation mode, becoming very slow (see jdb output in the
> jdb_step.txt file).
>
> I assume running in the interpreter mode, as I
> see InterpreterRuntime::post_method_exit
> calls in the profiler.
>
> Could you please help me figure out what causes the application to
> run in the interpreter mode? Is this a bug or an expected behavior?
> Are there any ways to work around this issue?
I think this is:
https://bugs.openjdk.org/browse/JDK-8229012
Thanks,
Severin
More information about the serviceability-dev
mailing list