File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/hotspot/share/gc/shenandoah Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3636 do { \
3737 if (FLAG_IS_DEFAULT (name) && (name)) { \
3838 log_info (gc)(" Heuristics ergonomically sets -XX:-" #name); \
39- FLAG_SET_DEFAULT (name, false ); \
39+ FLAG_SET_ERGO (name, false ); \
4040 } \
4141 } while (0 )
4242
4343#define SHENANDOAH_ERGO_ENABLE_FLAG (name ) \
4444 do { \
4545 if (FLAG_IS_DEFAULT (name) && !(name)) { \
4646 log_info (gc)(" Heuristics ergonomically sets -XX:+" #name); \
47- FLAG_SET_DEFAULT (name, true ); \
47+ FLAG_SET_ERGO (name, true ); \
4848 } \
4949 } while (0 )
5050
5151#define SHENANDOAH_ERGO_OVERRIDE_DEFAULT (name, value ) \
5252 do { \
5353 if (FLAG_IS_DEFAULT (name)) { \
5454 log_info (gc)(" Heuristics ergonomically sets -XX:" #name " =" #value); \
55- FLAG_SET_DEFAULT (name, value); \
55+ FLAG_SET_ERGO (name, value); \
5656 } \
5757 } while (0 )
5858
Original file line number Diff line number Diff line change 2929#include " gc/shenandoah/shenandoahHeap.inline.hpp"
3030#include " logging/log.hpp"
3131#include " logging/logTag.hpp"
32+ #include " runtime/globals_extension.hpp"
3233#include " runtime/java.hpp"
3334
3435void ShenandoahPassiveMode::initialize_flags () const {
@@ -38,7 +39,10 @@ void ShenandoahPassiveMode::initialize_flags() const {
3839
3940 // No need for evacuation reserve with Full GC, only for Degenerated GC.
4041 if (!ShenandoahDegeneratedGC) {
41- SHENANDOAH_ERGO_OVERRIDE_DEFAULT (ShenandoahEvacReserve, 0 );
42+ if (FLAG_IS_DEFAULT (ShenandoahEvacReserve)) {
43+ log_info (gc)(" Heuristics sets -XX:ShenandoahEvacReserve=0" );
44+ FLAG_SET_DEFAULT (ShenandoahEvacReserve, 0 );
45+ }
4246 }
4347
4448 // Disable known barriers by default.
You can’t perform that action at this time.
0 commit comments