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

GenShen: assert(_degen_point == ShenandoahGC::_degenerated_unset) failed: Should not be set yet: Outside of Cycle

XMLWordPrintable

    • gc
    • b21

      When old generation marking is cancelled to run a young collection. we still set a `_degen_point ` for reasons that became vestigial after https://bugs.openjdk.org/browse/JDK-8349094. When old marking is cancelled, the `_degen_point` should only be set if the marking was cancelled because of an allocation failure (and it should still only be set to "outside of cycle"). The following sequence could lead to this assertion failure:
      1. Control thread is marking old
      2. Young GC preempts it
      3. Control thread sets the degen point because the old GC was "cancelled"
      4. The concurrent young GC fails and attempts to set a degenerated point
      5. This trips the assert because we already (incorrectly) set the degen point in `3`.

            wkemper William Kemper
            wkemper William Kemper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: