Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16u Public archive

Commit

Permalink
8261413: Shenandoah: Disable class-unloading in I-U mode
Browse files Browse the repository at this point in the history
Reviewed-by: zgu
Backport-of: e2d52ae2656deab98229a4701810334e9cc8519a
  • Loading branch information
shipilev committed Mar 2, 2021
1 parent b9582bf commit 39fb8e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hotspot/share/gc/shenandoah/mode/shenandoahIUMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
#include "runtime/java.hpp"

void ShenandoahIUMode::initialize_flags() const {
if (FLAG_IS_CMDLINE(ClassUnloadingWithConcurrentMark) && ClassUnloading) {
log_warning(gc)("Shenandoah I-U mode sets -XX:-ClassUnloadingWithConcurrentMark; see JDK-8261341 for details");
}
FLAG_SET_DEFAULT(ClassUnloadingWithConcurrentMark, false);

if (ShenandoahConcurrentRoots::can_do_concurrent_class_unloading()) {
FLAG_SET_DEFAULT(ShenandoahSuspendibleWorkers, true);
FLAG_SET_DEFAULT(VerifyBeforeExit, false);
Expand Down

1 comment on commit 39fb8e5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.