8158629: bash >(...) construct still causes race conditions
authorerikj
Fri, 01 Jul 2016 11:55:25 +0200
changeset 39622 ea5433c14f21
parent 39621 b475d96f8008
child 39624 548370ed7f2a
8158629: bash >(...) construct still causes race conditions Reviewed-by: tbell
hotspot/make/gensrc/GensrcDtrace.gmk
hotspot/make/lib/CompileDtracePostJvm.gmk
--- a/hotspot/make/gensrc/GensrcDtrace.gmk	Wed Jun 29 16:11:50 2016 +0200
+++ b/hotspot/make/gensrc/GensrcDtrace.gmk	Fri Jul 01 11:55:25 2016 +0200
@@ -45,7 +45,8 @@
   $(DTRACE_GENSRC_DIR)/%.h: $(DTRACE_SOURCE_DIR)/%.d
 	$(call LogInfo, Generating dtrace header file $(@F))
 	$(call MakeDir, $(@D) $(DTRACE_SUPPORT_DIR))
-	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, $(CC) -E $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d)
+	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, \
+	    ( $(CC) -E $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d ) )
 	$(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -h -o $@ -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
 
   # Process all .d files in DTRACE_SOURCE_DIR. They are:
--- a/hotspot/make/lib/CompileDtracePostJvm.gmk	Wed Jun 29 16:11:50 2016 +0200
+++ b/hotspot/make/lib/CompileDtracePostJvm.gmk	Fri Jul 01 11:55:25 2016 +0200
@@ -68,7 +68,7 @@
       $1: $$(BUILD_DTRACE_GEN_OFFSETS)
 	$$(call LogInfo, Generating dtrace $2 file $$(@F))
 	$$(call MakeDir, $$(@D))
-	$$(call ExecuteWithLog, $$@, $$(DTRACE_GEN_OFFSETS_TOOL) -$$(strip $2) > $$@)
+	$$(call ExecuteWithLog, $$@, ( $$(DTRACE_GEN_OFFSETS_TOOL) -$$(strip $2) > $$@ ) )
 
       TARGETS += $1
     endef