mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-11 23:48:38 +00:00
8237223: Shenandoah: important flags should not be ergonomic for concurrent class unloading
Reviewed-by: zgu
This commit is contained in:
parent
ec5869eb2e
commit
abfab9e0a7
@ -33,12 +33,13 @@
|
||||
#include "logging/logTag.hpp"
|
||||
|
||||
void ShenandoahNormalMode::initialize_flags() const {
|
||||
if (ShenandoahConcurrentRoots::can_do_concurrent_class_unloading()) {
|
||||
FLAG_SET_DEFAULT(ShenandoahSuspendibleWorkers, true);
|
||||
FLAG_SET_DEFAULT(VerifyBeforeExit, false);
|
||||
}
|
||||
|
||||
SHENANDOAH_ERGO_ENABLE_FLAG(ExplicitGCInvokesConcurrent);
|
||||
SHENANDOAH_ERGO_ENABLE_FLAG(ShenandoahImplicitGCInvokesConcurrent);
|
||||
if (ShenandoahConcurrentRoots::can_do_concurrent_class_unloading()) {
|
||||
SHENANDOAH_ERGO_ENABLE_FLAG(ShenandoahSuspendibleWorkers);
|
||||
SHENANDOAH_ERGO_DISABLE_FLAG(VerifyBeforeExit);
|
||||
}
|
||||
|
||||
// Final configuration checks
|
||||
SHENANDOAH_CHECK_FLAG_SET(ShenandoahLoadRefBarrier);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user