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

G1: Improve assert in HeapRegion::reset_not_compacted_after_full_gc

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b20

      Description

      the patch looks like below:

      diff --git a/src/hotspot/share/gc/g1/heapRegion.inline.hpp b/src/hotspot/share/gc/g1/heapRegion.inline.hpp
      index 19d610d927d..753771eabcb 100644
      --- a/src/hotspot/share/gc/g1/heapRegion.inline.hpp
      +++ b/src/hotspot/share/gc/g1/heapRegion.inline.hpp
      @@ -199,7 +199,7 @@ inline void HeapRegion::reset_compacted_after_full_gc() {
       }

       inline void HeapRegion::reset_not_compacted_after_full_gc() {
      - assert(!is_free(), "should not have compacted free region");
      + assert(!is_free(), "should have compacted free region");

         assert(compaction_top() == bottom(),
                "region %u compaction_top " PTR_FORMAT " must not be different from bottom " PTR_FORMAT,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mli Hamlin Li
              Reporter:
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: