-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[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") || | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: do you want to retrieve the value of java.vendor once here and compare it twice? the overall change seems fine, though I don't know if it means these JDKs will always work. We only test against the Oracle/OpenJDK |
||
| 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")) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know who uses this Could it be a 3rd party tool should use the package name:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm yeah it's unused as far as I can see. It shouldn't be used by third parties anyway. Delete it?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is one more method near this one also seams to me unused:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh and there will be the enum as well:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, you can delete the unused code here. |
||
| return JavaVendor.OpenJ9; | ||
| } | ||
| return JavaVendor.Unknown; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.