-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27397][Core] Take care of OpenJ9 JVM in Spark #24308
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,8 +131,9 @@ object SizeEstimator extends Logging { | |
| return System.getProperty(TEST_USE_COMPRESSED_OOPS_KEY).toBoolean | ||
| } | ||
|
|
||
| // java.vm.info provides compressed ref info for IBM JDKs | ||
| if (System.getProperty("java.vendor").contains("IBM")) { | ||
| // java.vm.info provides compressed ref info for IBM and OpenJ9 JDKs | ||
| if (System.getProperty("java.vendor").contains("IBM") || | ||
|
||
| System.getProperty("java.vendor").contains("OpenJ9")) { | ||
| return System.getProperty("java.vm.info").contains("Compressed Ref") | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ class CommandBuilderUtils { | |
|
|
||
| /** The set of known JVM vendors. */ | ||
| enum JavaVendor { | ||
| Oracle, IBM, OpenJDK, Unknown | ||
| Oracle, IBM, OpenJDK, OpenJ9, Unknown | ||
| } | ||
|
|
||
| /** Returns whether the given string is null or empty. */ | ||
|
|
@@ -124,6 +124,9 @@ static JavaVendor getJavaVendor() { | |
| if (vendorString.contains("OpenJDK")) { | ||
| return JavaVendor.OpenJDK; | ||
| } | ||
| if (vendorString.contains("OpenJ9")) { | ||
|
||
| return JavaVendor.OpenJ9; | ||
| } | ||
| return JavaVendor.Unknown; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.