RFR(XL): 8199712: Flight Recorder (original) (raw)

Erik Gahlin erik.gahlin at oracle.com
Fri Apr 27 13:25:17 UTC 2018


Hi Magnus,

Sorry about not including build-dev. See comments inline.

On 2018-04-25 13:06, Erik Gahlin wrote: Greetings,

Could I have a review of 8199712: Flight Recorder As mentioned in the preview [1] the tracing backend has been removed. Event metadata has been consolidated into a single XML file and event classes are now generated by GenerateJfrFiles.java. Tests have been run on Linux-x64, Windows-x64 and MaxOSX-x64. For details about the feature, see the JEP: https://bugs.openjdk.java.net/browse/JDK-8193393 Webrev: http://cr.openjdk.java.net/~egahlin/8199712.0/ Hi Erik, When posting build changes (files in "make/*"), please always include build-dev. Thanks! :-) This review is for build changes only. * make/RunTestsPrebuiltSpec.gmk: This file has only a copyright year change. It can be reverted. Will fix.

* make/copy/Copy-jdk.jfr.gmk: COPYHOTSPOTTRACEFILES should be renamed to something like COPYJFRMETADATA. Will fix.

The second part is better off rewritten using SetupCopyFiles.

Something like this, written on-the-fly, so might not work. (Email me privately if it does not work and you need help.) JFRCONFDIR := $(TOPDIR)/src/jdk.jfr/share/conf/jfr _$(eval $(call SetupCopyFiles, COPYJFRCONF, _ _DEST := $(LIBDSTDIR)/jfr, _ _FILES := (wildcard(wildcard (wildcard(JFRCONFDIR)/*.jfc), _ _FLATTEN := true, _ )) TARGETS += $(COPYJFRCONF) Will look into it.

* make/autoconf/hotspot.m4: It's a bit unfortunate with the --enable-jfr option. Ideally, this should be handled only as a JVM feature (--with-jvm-features=jfr). Try this piece of code instead: (Not tested, but should work.)

diff --git a/make/autoconf/hotspot.m4 b/make/autoconf/hotspot.m4 --- a/make/autoconf/hotspot.m4 +++ b/make/autoconf/hotspot.m4 @@ -26,7 +26,7 @@ # All valid JVM features, regardless of platform VALIDJVMFEATURES="compiler1 compiler2 zero minimal dtrace jvmti _jvmci _ _graal vm-structs jni-check services management all-gcs nmt cds _ - static-build link-time-opt aot" + static-build link-time-opt aot jfr" # All valid JVM variants VALIDJVMVARIANTS="server client minimal core zero custom" @@ -313,6 +313,11 @@ ACMSGERROR([Specified JVM feature 'vm-structs' requires feature 'all-gcs']) fi + # Enable JFR by default, except on linux-sparcv9 and on minimal. + if test "x$OPENJDKTARGETOS" != xlinux || test "x$OPENJDKTARGETCPU" != xsparcv9; then + NONMINIMALFEATURES="$NONMINIMALFEATURES jfr" + fi + # Turn on additional features based on other parts of configure if test "x$INCLUDEDTRACE" = "xtrue"; then JVMFEATURES="$JVMFEATURES dtrace" Will try it.

Thanks Erik

Otherwise, build changes look good!

/Magnus

Bug: https://bugs.openjdk.java.net/browse/JDK-8199712 [1] http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-April/031359.html Thanks Erik and Markus



More information about the hotspot-dev mailing list