Skip to content
Permalink
Browse files

8236272: Improve fidelity between contents of default CDS archive and…

… classes loaded at runtime

Reviewed-by: erikj, jiangli, iklam
  • Loading branch information
cl4es committed Feb 7, 2020
1 parent 9abc1a4 commit 9c8f05279c6cef4b3f7830ed4b0979ab4d7263dc
Showing with 8 additions and 1 deletion.
  1. +7 −0 make/GenerateLinkOptData.gmk
  2. +1 −1 make/jdk/src/classes/build/tools/classlist/HelloClasslist.java
@@ -65,6 +65,13 @@ $(CLASSLIST_FILE): $(INTERIM_IMAGE_DIR)/bin/java$(EXE_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:DumpLoadedClassList=$@.raw \
-Duser.language=en -Duser.country=US \
-cp $(SUPPORT_OUTPUTDIR)/classlist.jar \
build.tools.classlist.HelloClasslist $(LOG_DEBUG)
$(GREP) -v HelloClasslist $@.raw > $(INTERIM_IMAGE_DIR)/lib/classlist
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -Xshare:dump \
-Xmx128M -Xms128M $(LOG_INFO)
$(FIXPATH) $(INTERIM_IMAGE_DIR)/bin/java -XX:DumpLoadedClassList=$@.raw \
-Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true \
-Duser.language=en -Duser.country=US \
@@ -99,7 +99,7 @@ public static void main(String ... args) {
DateFormat.getDateInstance(DateFormat.DEFAULT, Locale.ROOT)
.format(new Date()));

LOGGER.log(Level.INFO, "New Date: " + newDate + " - old: " + oldDate);
LOGGER.log(Level.FINE, "New Date: " + newDate + " - old: " + oldDate);
}

}

0 comments on commit 9c8f052

Please sign in to comment.