Skip to content

Commit

Permalink
8294751: Zero: Allow larger default heaps
Browse files Browse the repository at this point in the history
Reviewed-by: iklam, rkennke
  • Loading branch information
shipilev committed Oct 11, 2022
1 parent 33d0618 commit 3ebe5ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions src/hotspot/share/compiler/compiler_globals_pd.hpp
Expand Up @@ -70,8 +70,15 @@ define_pd_global(uintx, NonNMethodCodeHeapSize, 32*M);
define_pd_global(uintx, CodeCacheExpansionSize, 32*K);
define_pd_global(uintx, CodeCacheMinBlockLength, 1);
define_pd_global(uintx, CodeCacheMinimumUseSpace, 200*K);
#ifndef ZERO
define_pd_global(bool, NeverActAsServerClassMachine, true);
define_pd_global(uint64_t,MaxRAM, 1ULL*G);
#else
// Zero runs without compilers. Do not let this code to force
// the GC mode and default heap settings.
define_pd_global(bool, NeverActAsServerClassMachine, false);
define_pd_global(uint64_t,MaxRAM, 128ULL*G);
#endif
#define CI_COMPILER_COUNT 0
#else

Expand Down
6 changes: 0 additions & 6 deletions src/hotspot/share/runtime/arguments.cpp
Expand Up @@ -3152,12 +3152,6 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
#ifdef ZERO
// Zero always runs in interpreted mode
set_mode_flags(_int);

// Zero runs without compilers. Do not let compiler selection code
// to force it into Serial GC, let the GC ergonomics decide.
if (FLAG_IS_DEFAULT(NeverActAsServerClassMachine)) {
FLAG_SET_ERGO(NeverActAsServerClassMachine, false);
}
#endif

// eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set
Expand Down

1 comment on commit 3ebe5ad

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