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

Hotspot code should special case ScopedAccessError

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      In a recent change, this function was introduced:

      void ThreadShadow::clear_pending_nonasync_exception() {
        // Do not clear probable async exceptions.
        if (!_pending_exception->is_a(SystemDictionary::ThreadDeath_klass()) &&
             _pending_exception->klass() != (_pending_exception->klass() != SystemDictionary::InternalError_klass() ||
             java_lang_InternalError::during_unsafe_access(_pending_exception) != JNI_TRUE)) {
          clear_pending_exception();
        }
      }

      This code should be enhanced to also test for the new ScopedAccessError async exception, so that this is not accidentally cleared.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: