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

ZStatSubPhase::register_start should not call register_gc_phase_start if ZAbort::should_abort()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 21
    • 21
    • hotspot
    • gc
    • b24
    • Not verified

      ZStatSubPhase::register_start should not call register_gc_phase_start if ZAbort::should_abort() is true. This will cause an unbalanced push and pop behaviour of the phase stack as ZStatSubPhase::register_end stops popping (and sending events) after the aborting has started. This will create an issue if more subsequent sub-phases are added in-between two abort points as the phase stack may overflow.

      Simply avoid pushing new phases when aborting has started solves this issue.

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

              Created:
              Updated:
              Resolved: