8214311: dtrace gensrc has missing dependencies
authorihse
Mon, 03 Dec 2018 18:43:24 +0100
changeset 52802 7b757120a053
parent 52801 0baf34792a27
child 52803 0402d381135d
8214311: dtrace gensrc has missing dependencies Reviewed-by: tbell, erikj
make/Main.gmk
make/hotspot/gensrc/GensrcDtrace.gmk
--- a/make/Main.gmk	Mon Dec 03 23:58:15 2018 +0800
+++ b/make/Main.gmk	Mon Dec 03 18:43:24 2018 +0100
@@ -643,6 +643,7 @@
   # Declare dependencies between hotspot-<variant>* targets
   $(foreach v, $(JVM_VARIANTS), \
       $(eval hotspot-$v: hotspot-$v-gensrc hotspot-$v-libs) \
+      $(eval hotspot-$v-gensrc: java.base-copy) \
       $(eval hotspot-$v-libs: hotspot-$v-gensrc java.base-copy) \
   )
 
--- a/make/hotspot/gensrc/GensrcDtrace.gmk	Mon Dec 03 23:58:15 2018 +0800
+++ b/make/hotspot/gensrc/GensrcDtrace.gmk	Mon Dec 03 18:43:24 2018 +0100
@@ -64,8 +64,9 @@
     include lib/JvmFeatures.gmk
     include lib/JvmFlags.gmk
 
-    # We cannot compile until the JVMTI gensrc has finished
+    # We cannot compile until the JVMTI and JFR gensrc has finished
     JVMTI_H := $(JVM_VARIANT_OUTPUTDIR)/gensrc/jvmtifiles/jvmti.h
+    JFR_FILES := $(JVM_VARIANT_OUTPUTDIR)/gensrc/jfrfiles/jfrEventClasses.hpp
 
     $(eval $(call SetupNativeCompilation, BUILD_DTRACE_GEN_OFFSETS, \
         NAME := dtraceGenOffsets, \
@@ -76,7 +77,7 @@
         CFLAGS := -m64 $(JVM_CFLAGS), \
         DISABLED_WARNINGS_solstudio := hidef w_novirtualdescr unknownpragma \
             doubunder nokeyworddefine wunreachable, \
-        EXTRA_DEPS := $(JVMTI_H), \
+        EXTRA_DEPS := $(JVMTI_H) $(JFR_FILES), \
         OBJECT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/dtrace-gen-offsets/objs, \
         OUTPUT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/dtrace-gen-offsets, \
     ))