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

Test fails -- HeapRegion::hr_clear(): assert(_end == orig_end(),

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      $ java -XX:+ExecuteInternalVMTests -XX:+UseG1GC -version

      The test fails on this assert in HeapRegion::hr_clear():

      assert(_end == orig_end(),

      The reason for the failure is that the internal test, FreeRegionList_test() in heapRegionSet.cpp, creates heap regions with invalid memory regions. There is this comment in the test:


        // Create a fake heap. It does not need to be valid, as the HeapRegion constructor
        // does not access it.
        MemRegion heap(NULL, num_regions_in_test * HeapRegion::GrainWords);

      The problem is that this is no longer true. The assert in HeapRegion::hr_clear() actually looks at the memory region.

      So, my (Bengt) guess is that the fix is to create more consistent memory regions in the test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jprovino Joseph Provino (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: