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

Hotspot code should special case ScopedAccessError

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • repo-panama
    • tools

      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.

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

              Created:
              Updated:
              Resolved: