Skip to content

Commit 3ebe5ad

Browse files
committed
8294751: Zero: Allow larger default heaps
Reviewed-by: iklam, rkennke
1 parent 33d0618 commit 3ebe5ad

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/hotspot/share/compiler/compiler_globals_pd.hpp

+7
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,15 @@ define_pd_global(uintx, NonNMethodCodeHeapSize, 32*M);
7070
define_pd_global(uintx, CodeCacheExpansionSize, 32*K);
7171
define_pd_global(uintx, CodeCacheMinBlockLength, 1);
7272
define_pd_global(uintx, CodeCacheMinimumUseSpace, 200*K);
73+
#ifndef ZERO
7374
define_pd_global(bool, NeverActAsServerClassMachine, true);
7475
define_pd_global(uint64_t,MaxRAM, 1ULL*G);
76+
#else
77+
// Zero runs without compilers. Do not let this code to force
78+
// the GC mode and default heap settings.
79+
define_pd_global(bool, NeverActAsServerClassMachine, false);
80+
define_pd_global(uint64_t,MaxRAM, 128ULL*G);
81+
#endif
7582
#define CI_COMPILER_COUNT 0
7683
#else
7784

src/hotspot/share/runtime/arguments.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -3152,12 +3152,6 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
31523152
#ifdef ZERO
31533153
// Zero always runs in interpreted mode
31543154
set_mode_flags(_int);
3155-
3156-
// Zero runs without compilers. Do not let compiler selection code
3157-
// to force it into Serial GC, let the GC ergonomics decide.
3158-
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
3159-
FLAG_SET_ERGO(NeverActAsServerClassMachine, false);
3160-
}
31613155
#endif
31623156

31633157
// eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set

0 commit comments

Comments
 (0)