Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(0.41) Consume -XX:[+/-]UseZlibNX options in OpenJ9 builds #18182

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions runtime/oti/jvminit.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ enum INIT_STAGE {
#define VMOPT_XXSETHWPREFETCH_OS_DEFAULT "-XXsetHWPrefetch:os-default"
#define VMOPT_XXSETHWPREFETCH_EQUALS "-XXsetHWPrefetch="

#define VMOPT_XXUSEZLIBNX "-XX:+UseZlibNX"
#define VMOPT_XXNOUSEZLIBNX "-XX:-UseZlibNX"

#define VMOPT_XXLAZYSYMBOLRESOLUTION "-XX:+LazySymbolResolution"
#define VMOPT_XXNOLAZYSYMBOLRESOLUTION "-XX:-LazySymbolResolution"

Expand Down
6 changes: 5 additions & 1 deletion runtime/vm/jvminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,11 @@ VMInitStages(J9JavaVM *vm, IDATA stage, void* reserved)
if (FIND_AND_CONSUME_VMARG(STARTSWITH_MATCH, VMOPT_XXSETHWPREFETCH_EQUALS, NULL) >= 0) {
vm->extendedRuntimeFlags |= J9_EXTENDED_RUNTIME_SET_HW_PREFETCH;
}
#endif
#if defined(OPENJ9_BUILD)
FIND_AND_CONSUME_VMARG(EXACT_MATCH, VMOPT_XXUSEZLIBNX, NULL);
FIND_AND_CONSUME_VMARG(EXACT_MATCH, VMOPT_XXNOUSEZLIBNX, NULL);
#endif /* defined(OPENJ9_BUILD) */
#endif /* defined(AIXPPC) */

/* set the default mode */
vm->lockwordMode =LOCKNURSERY_ALGORITHM_ALL_BUT_ARRAY;
Expand Down