RFR: 8365192: post_meth_exit should be in vm state when calling get_jvmti_thread_state [v7]
David Holmes
dholmes at openjdk.org
Wed Aug 20 07:44:37 UTC 2025
On Wed, 20 Aug 2025 06:28:26 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> The comment in JBS shows the stacktrace from hs_err.
But nothing in that hs_err snippet indicates that the problem is we are in the wrong state.
> void `JvmtiExport::post_method_exit(JavaThread* thread, Method* method, frame current_frame)` that also calls `JvmtiExport::post_method_exit_inner()` is used only when method exit normally.
Thanks for clarifying. I was looking at remove_activation in the interpreter and did not see any special exception processing path.
> So current method is exit normally while thread is processing exception.
Still struggling with this part. So the method exited normally then as part of event processing a Java upcall can raise an exception? But according to the spec any such exceptions get dropped - so is the flag just to do the dropping?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26713#issuecomment-3204655870
More information about the hotspot-dev
mailing list