Skip to content

Commit c61cfb5

Browse files
committed
8255718: Zero: VM should know it runs in interpreter-only mode
Backport-of: f0eeca9
1 parent 3e09f94 commit c61cfb5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hotspot/share/runtime/arguments.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,6 +3138,11 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
31383138
set_mode_flags(_int);
31393139
}
31403140

3141+
#ifdef ZERO
3142+
// Zero always runs in interpreted mode
3143+
set_mode_flags(_int);
3144+
#endif
3145+
31413146
// eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set
31423147
if (FLAG_IS_DEFAULT(InitialTenuringThreshold) && (InitialTenuringThreshold > MaxTenuringThreshold)) {
31433148
FLAG_SET_ERGO(uintx, InitialTenuringThreshold, MaxTenuringThreshold);

0 commit comments

Comments
 (0)