Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/make/non-build-utils/sharing/README.txt
32284 views
This directory contains tools and tests associated with creating the1class list for class data sharing.23The class list is produced by running the refWorkload startup3 benchmark with4the -XX:+TraceClassLoadingPreorder option. The -Xshare:off option must also be5used so that bootclasspath classes are loaded from rt.jar. The MakeClasslist6program should be built into the jar file makeclasslist.jar and is run7on one of the logs from each of the benchmarks in the following fashion:89cd .../<resultsdir>/results.startup310$JAVA_HOME/bin/java -jar makeclasslist.jar results.Noop/results_1/log results.Framer/results_1/log results.XFramer/results_1/log results.JEdit/results_1/log results.LimeWire/results_1/log results.NetBeans50/results_1/log1112Presently, $JAVA_HOME must be the same path used to run the startup3 benchmark.1314The logs are deliberately concatenated in roughly smallest to largest order15based on application size. The resulting output is redirected into a file16and results in one of classlist.solaris, classlist.linux, classlist.macosx,17or classlist.windows. These files are checked in to the workspace. A18necessary checksum (AddJsum.java) is added to the final classlist19(installed in lib/ or jre/lib/) during the build process by the20makefiles in make/java/redist.2122In a forthcoming JDK build we plan to manually add the dependent23classes for the calendar manager Glow, which pulls in the Preferences24classes and, on Unix platforms, the XML parsing classes.2526The properties file supplied to the refworkload is approximately the27following:2829javahome=/usr/java/j2sdk1.8.030resultsdir=classlist-run31iterations=132benchmarks=startup333globalvmoptions=-client -Xshare:off -XX:+TraceClassLoadingPreorder343536