8328879: G1: Some gtests modify global state crashing the JVM during GC after JDK-8289822
Reviewed-by: iwalulya, kbarrett
This commit is contained in:
parent
bde3fc0c03
commit
2c45eca159
test/hotspot/gtest/gc/g1
@ -34,7 +34,7 @@
|
|||||||
#include "unittest.hpp"
|
#include "unittest.hpp"
|
||||||
|
|
||||||
// @requires UseG1GC
|
// @requires UseG1GC
|
||||||
TEST_VM(FreeRegionList, length) {
|
TEST_OTHER_VM(FreeRegionList, length) {
|
||||||
if (!UseG1GC) {
|
if (!UseG1GC) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ void VM_HeapRegionApplyToMarkedObjectsTest::doit() {
|
|||||||
region->set_top(old_top);
|
region->set_top(old_top);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_VM(HeapRegion, apply_to_marked_object) {
|
TEST_OTHER_VM(HeapRegion, apply_to_marked_object) {
|
||||||
if (!UseG1GC) {
|
if (!UseG1GC) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user