Commit 5ce3d0d 1 parent 334df28 commit 5ce3d0d Copy full SHA for 5ce3d0d
File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1077,6 +1077,13 @@ void Metaspace::ergo_initialize() {
1077
1077
_commit_alignment = page_size;
1078
1078
_reserve_alignment = MAX2 (page_size, (size_t )os::vm_allocation_granularity ());
1079
1079
1080
+ // The upcoming Metaspace rewrite will impose a higher alignment granularity.
1081
+ // To prepare for that and to catch/prevent any misuse of Metaspace alignment
1082
+ // which may creep in, up the alignment a bit.
1083
+ if (_reserve_alignment == 4 * K) {
1084
+ _reserve_alignment *= 4 ;
1085
+ }
1086
+
1080
1087
// Do not use FLAG_SET_ERGO to update MaxMetaspaceSize, since this will
1081
1088
// override if MaxMetaspaceSize was set on the command line or not.
1082
1089
// This information is needed later to conform to the specification of the
You can’t perform that action at this time.
0 commit comments