Skip to content

Commit

Permalink
Merge pull request #18182 from pshipton/zlibnx0.41
Browse files Browse the repository at this point in the history
(0.41) Consume -XX:[+/-]UseZlibNX options in OpenJ9 builds
  • Loading branch information
keithc-ca authored Sep 22, 2023
2 parents da77ebf + 82c4850 commit 59f6eca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 59f6eca

Please sign in to comment.