forked from openjdk/jdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into JDK-8332587
- Loading branch information
Showing
179 changed files
with
3,318 additions
and
1,638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,14 +62,23 @@ ifeq ($(EXTERNAL_BUILDJDK), true) | |
INTERIM_IMAGE_DIR := $(BUILD_JDK) | ||
endif | ||
|
||
# These are needed for deterministic classlist: | ||
# - The classlist can be influenced by locale. Always set it to en/US. | ||
# - Run with -Xint, as the compiler can speculatively resolve constant pool entries. | ||
# - ForkJoinPool parallelism can cause constant pool resolution to be non-deterministic. | ||
CLASSLIST_FILE_VM_OPTS = \ | ||
-Duser.language=en -Duser.country=US \ | ||
-Xint \ | ||
-Djava.util.concurrent.ForkJoinPool.common.parallelism=0 | ||
|
||
# Save the stderr output of the command and print it along with stdout in case | ||
# something goes wrong. | ||
$(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXECUTABLE_SUFFIX) $(CLASSLIST_JAR) | ||
$(call MakeDir, $(LINK_OPT_DIR)) | ||
$(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $@)) | ||
$(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%, %, $(JLI_TRACE_FILE))) | ||
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -XX:[email protected] \ | ||
-Duser.language=en -Duser.country=US \ | ||
$(CLASSLIST_FILE_VM_OPTS) \ | ||
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \ | ||
build.tools.classlist.HelloClasslist $(LOG_DEBUG) | ||
$(GREP) -v HelloClasslist [email protected] > [email protected] | ||
|
@@ -79,7 +88,7 @@ $(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXECUTABLE_SUFFIX) $(CLASSLIST | |
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -XX:[email protected] \ | ||
-XX:[email protected] -XX:[email protected] \ | ||
-Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true \ | ||
-Duser.language=en -Duser.country=US \ | ||
$(CLASSLIST_FILE_VM_OPTS) \ | ||
--module-path $(SUPPORT_OUTPUTDIR)/classlist.jar \ | ||
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \ | ||
build.tools.classlist.HelloClasslist \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.