Skip to content

Commit

Permalink
8261413: Shenandoah: Disable class-unloading in I-U mode
Browse files Browse the repository at this point in the history
Reviewed-by: shade, zgu
  • Loading branch information
rkennke committed Feb 16, 2021
1 parent 34ae7ae commit e2d52ae
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 @@ -34,6 +34,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 (ClassUnloading) {
FLAG_SET_DEFAULT(ShenandoahSuspendibleWorkers, true);
FLAG_SET_DEFAULT(VerifyBeforeExit, false);
Expand Down

1 comment on commit e2d52ae

@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.