Skip to content

Commit

Permalink
Merge pull request #17602 from eclipse-openj9/revert-16452-enableStrC…
Browse files Browse the repository at this point in the history
…ompF

Revert "Enable String Compression by default in OpenJ9"
  • Loading branch information
pshipton authored Jun 15, 2023
2 parents 3805a8f + 9dc2a28 commit 83a7f81
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions runtime/vm/jvminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -6461,23 +6461,12 @@ processCompressionOptions(J9JavaVM *vm)
argIndex1 = FIND_AND_CONSUME_VMARG(EXACT_MATCH, VMOPT_XXCOMPACTSTRINGS, NULL);
argIndex2 = FIND_AND_CONSUME_VMARG(EXACT_MATCH, VMOPT_XXNOCOMPACTSTRINGS, NULL);

#if JAVA_SPEC_VERSION >= 11
/* Default setting */
vm->strCompEnabled = TRUE;

// Default to enable string compression unless there's the option to disable string compression
// is explicitly defined.
if (argIndex2 > argIndex1) {
vm->strCompEnabled = FALSE;
}
#else /* JAVA_SPEC_VERSION >= 11 */
/* Default setting */
vm->strCompEnabled = FALSE;

if (argIndex1 > argIndex2) {
vm->strCompEnabled = TRUE;
}
#endif /* JAVA_SPEC_VERSION >= 11 */
}

/**
Expand Down

0 comments on commit 83a7f81

Please sign in to comment.