8328879: G1: Some gtests modify global state crashing the JVM during GC after JDK-8289822

Reviewed-by: iwalulya, kbarrett
This commit is contained in:
Thomas Schatzl 2024-04-12 07:22:06 +00:00
parent bde3fc0c03
commit 2c45eca159
2 changed files with 2 additions and 2 deletions

@ -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;
} }