Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365937

post_method_exit might incorrectly set was_popped_by_exception and value in the middle of stack unwinding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • None

      The void JvmtiExport::post_method_exit(JavaThread* thread, Method* method, frame current_frame) calculates
        bool exception_exit = state->is_exception_detected() && !state->is_exception_caught();

      to understand if method exit normally or by exception.
      However, this method is not called in the case of exception. See
      `void JvmtiExport::notice_unwind_due_to_exception(JavaThread *thread, Method* method, address location, oop exception, bool in_handler_frame)`
      where post_method_exit_inner is called directly.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: