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

Separate java.vendor and java.vm.vendor #5041

Merged
merged 1 commit into from
Mar 9, 2019

Conversation

JasonFengJ9
Copy link
Member

Separate java.vendor and java.vm.vendor

Removed the setting of java.vm.vendor with java.vm value;
Added JAVA_VM_VENDOR to be set for java.vm.vendor regardless of java.vendor values.

Additional notes:

  1. For JDK12+, it can be built with --with-vendor-name and --with-vendor-url, and the values specified will be set to java.vendor and java.vendor.url via java.lang.VersionProps.init(systemProperties);
  2. For JDK8 & 11, change to following defines are required:
    https://github.com/eclipse/openj9/blob/0bd089b36679fe0e3c5bfd63df0fcfc22c16c36d/runtime/include/vendor_version.h#L57-L58
    just like AdoptOpenJDK patch;
  3. Attempted to use configuration options --with-vendor-name for JDK 8 & 11 builds (particularly for JDK 11), it requires passing the value to closed/OpenJ9.gmk and to include/j9cfg.h.ftl via uma.spec.properties which requires more changes for legacy builds without incoming makefile options. JDK12+ provides a generic way to set a customized java.vendor and it doesn't seem worth to duplicate the effort for earlier versions;
  4. System property java.vendor.url.bug was set by RI but not OpenJ9, not adding it in this PR.

closes: #5002

Reviewer: @pshipton
FYI: @DanHeidinga @smlambert

Signed-off-by: Jason Feng fengj@ca.ibm.com

@pshipton
Copy link
Member

pshipton commented Mar 8, 2019

Removed the setting of java.vm.vendor with java.vm value;
Added JAVA_VM_VENDOR to be set for java.vm.vendor regardless of
java.vendor values.


Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@JasonFengJ9
Copy link
Member Author

@pshipton it has been fixed. Please have another look.

@pshipton
Copy link
Member

pshipton commented Mar 9, 2019

jenkins test sanity plinux jdk11,jdk12

@pshipton
Copy link
Member

pshipton commented Mar 9, 2019

@JasonFengJ9 please create a PR for the 0.13 branch.

@pshipton
Copy link
Member

pshipton commented Mar 9, 2019

The jdk12 failures are unrelated to this change.

@pshipton pshipton merged commit f0820b5 into eclipse-openj9:master Mar 9, 2019
@JasonFengJ9 JasonFengJ9 deleted the javavendor branch March 22, 2019 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDK12: java.vm.vendor getting overridden by java.vendor
2 participants