$ 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.
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.
- duplicates
-
JDK-8061449 G1: FreeRegionList_test() fails with G1 after the JDK-8058534 fix to HeapRegion::orig_end()
-
- Resolved
-
- relates to
-
JDK-8058534 Remove HeapRegion::_orig_end
-
- Resolved
-