This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -607,9 +607,8 @@ void Metaspace::ergo_initialize() {
607
607
// to commit for the Metaspace.
608
608
// It is just a number; a limit we compare against before committing. It
609
609
// does not have to be aligned to anything.
610
- // It gets used as compare value in class CommitLimiter.
611
- // It is set to max_uintx in globals.hpp by default, so by default it does
612
- // not limit anything.
610
+ // It gets used as compare value before attempting to increase the metaspace
611
+ // commit charge. It defaults to max_uintx (unlimited).
613
612
//
614
613
// CompressedClassSpaceSize is the size, in bytes, of the address range we
615
614
// pre-reserve for the compressed class space (if we use class space).
@@ -626,8 +625,7 @@ void Metaspace::ergo_initialize() {
626
625
// We still adjust CompressedClassSpaceSize to reasonable limits, mainly to
627
626
// save on reserved space, and to make ergnonomics less confusing.
628
627
629
- // (aligned just for cleanliness:)
630
- MaxMetaspaceSize = MAX2 (align_down (MaxMetaspaceSize, commit_alignment ()), commit_alignment ());
628
+ MaxMetaspaceSize = MAX2 (MaxMetaspaceSize, commit_alignment ());
631
629
632
630
if (UseCompressedClassPointers) {
633
631
// Let CCS size not be larger than 80% of MaxMetaspaceSize. Note that is
Original file line number Diff line number Diff line change @@ -96,10 +96,7 @@ static void print_vs(outputStream* out, size_t scale) {
96
96
97
97
static void print_settings (outputStream* out, size_t scale) {
98
98
out->print (" MaxMetaspaceSize: " );
99
- // See Metaspace::ergo_initialize() for how MaxMetaspaceSize is rounded
100
- if (MaxMetaspaceSize >= align_down (max_uintx, Metaspace::commit_alignment ())) {
101
- // aka "very big". Default is max_uintx, but due to rounding in arg parsing the real
102
- // value is smaller.
99
+ if (MaxMetaspaceSize == max_uintx) {
103
100
out->print (" unlimited" );
104
101
} else {
105
102
print_human_readable_size (out, MaxMetaspaceSize, scale);
You can’t perform that action at this time.
0 commit comments