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

ZGC: Enhance z_verify_safepoints_are_blocked interactions with VMError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 23, 24, 25
    • hotspot
    • gc
    • master

      `z_verify_safepoints_are_blocked` is used to check the thread state when performing barriers. However during a crash the error printing may call code which causes barriers to be executed. This may lead to recursive re-triggering of this assert if the reporting thread is in a disallowed thread state when printing.

      Enhance this check to allow a thread where `VMError::is_error_reported_in_current_thread()` is true to perform the load barrier.

      For most cases the barrier code will function when `VMError::is_error_reported_in_current_thread()` is true even if the thread is in a normally disallowed thread state.

            aboldtch Axel Boldt-Christmas
            aboldtch Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: