8268643: SVML lib shouldn't be generated when C2 is absent #37
Conversation
|
@DamonFool The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
make/autoconf/jvm-features.m4
Outdated
@@ -565,6 +568,7 @@ AC_DEFUN_ONCE([JVM_FEATURES_SETUP], | |||
# missing any of them. | |||
ENABLE_CDS="true" | |||
INCLUDE_JVMCI="true" | |||
INCLUDE_COMPILER2="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend inverting this logic so that it works properly in the (unlikely) even that two or more JVM variants are built into the same JDK. I assume we want this library built if any JVM variant has c2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @erikj79 for your review.
What do you mean by two or more JVM variants are built into the same JDK
?
Did you mean two different JVM variants can be built into just one JDK images?
As you suggested, I used to try to use $(call check-jvm-feature, compiler2)
like this
diff --git a/make/modules/jdk.incubator.vector/Lib.gmk b/make/modules/jdk.incubator.vector/Lib.gmk
index 2626065..a176b9a 100644
--- a/make/modules/jdk.incubator.vector/Lib.gmk
+++ b/make/modules/jdk.incubator.vector/Lib.gmk
@@ -27,7 +27,7 @@ include LibCommon.gmk
################################################################################
-ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64), true+true)
+ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64)+$(call check-jvm-feature, compiler2), true+true+true)
$(eval $(call SetupJdkLibrary, BUILD_LIBSVML, \
NAME := svml, \
CFLAGS := $(CFLAGS_JDKLIB), \
But it doesn't work.
Am I missing something?
Thanks.
Mailing list message from erik.joelsson at oracle.com on build-dev: On 2021-06-14 06:13, Jie Fu wrote:
Yes, there is still support for building multiple variants into the same
I deleted that comment because it was wrong. The check-jvm-feature macro /Erik |
1 similar comment
Mailing list message from erik.joelsson at oracle.com on build-dev: On 2021-06-14 06:13, Jie Fu wrote:
Yes, there is still support for building multiple variants into the same
I deleted that comment because it was wrong. The check-jvm-feature macro /Erik |
Sounds amazing. |
@DamonFool This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit 4a6da99.
Your commit was automatically rebased without conflicts. |
@DamonFool Pushed as commit 4a6da99. |
Hi all,
SVML lib shouldn't be generated when C2 is absent.
This is because it is only used by C2.
Thanks.
Best regards,
Jie
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/37/head:pull/37
$ git checkout pull/37
Update a local copy of the PR:
$ git checkout pull/37
$ git pull https://git.openjdk.java.net/jdk17 pull/37/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 37
View PR using the GUI difftool:
$ git pr show -t 37
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/37.diff