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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc

      $ 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.

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

              Created:
              Updated:
              Resolved: