On 5/31/24 7:25 AM, Severin Gehwolf wrote:
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

Yes, that seems likely. It should resolve itself once you exit the method you were single stepping in. But as mentioned in the bug, if you single step in the main method of a thread, that thread will forever run interpreted.

Chris

Reply via email to