Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Move ddrgen step after building VM #175

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

mikezhang1234567890
Copy link
Contributor

Move the run ddrgen step outside of the building VM step in order to
resolve DDR dependencies better.

This PR moves the run ddrgen step to after the VM is built, and needs to be delivered together with eclipse-openj9/openj9#2588.

Signed-off-by: mikezhang [email protected]

@$(ECHO) Copying j9ddr.dat
@$(ECHO) Running ddrgen to create j9ddr.dat, then copying it to lib directory
$(MAKE) -C $(OUTPUT_ROOT)/vm/ddr -f run_omrddrgen.mk VERSION_MAJOR=9 OPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS) \
CC="$(CC)" CXX="$(CXX)" $(EXPORT_MSVS_ENV_VARS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This work should be captured in a rule (as in ibmruntimes/openj9-openjdk-jdk8#110) so this work only happens as necessary.

@@ -109,6 +109,21 @@ OPENJ9_MISC_FILES := \
OPENJ9_NOTICE_FILES := openj9-notices.html
OPENJ9_REDIRECTOR := redirector/$(LIBRARY_PREFIX)jvm_b156$(SHARED_LIBRARY_SUFFIX)

OPENJ9_DDR_FILES := \
ifeq (true,$(OPENJ9_ENABLE_DDR))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't be surprised if this doesn't behave well when DDR is not enabled. Have you tried that scenario?

@mikezhang1234567890 mikezhang1234567890 changed the title Move ddrgen step after building VM WIP: Move ddrgen step after building VM Aug 14, 2018
OPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS) \
CC="$(CC)" CXX="$(CXX)" \
$(EXPORT_MSVS_ENV_VARS)
OPENJ9_DDR_FILES += j9ddr.dat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line cannot start with a tab else it will be considered to be part of the script to produce run-ddrgen .

Also, there should be a rule

.PHONY : run-ddrgen

@mikezhang1234567890 mikezhang1234567890 changed the title WIP: Move ddrgen step after building VM Move ddrgen step after building VM Aug 14, 2018
@mikezhang1234567890 mikezhang1234567890 force-pushed the ddr-compile branch 5 times, most recently from cbe7634 to 16f27bc Compare August 15, 2018 16:17
@@ -109,6 +109,22 @@ OPENJ9_MISC_FILES := \
OPENJ9_NOTICE_FILES := openj9-notices.html
OPENJ9_REDIRECTOR := redirector/$(LIBRARY_PREFIX)jvm_b156$(SHARED_LIBRARY_SUFFIX)

OPENJ9_DDR_FILES :=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the trailing whitespace here and squash to a single commit.

Add j9ddr.dat as a target run after building the VM so that ddrgen is
moved outside of the build VM step. This helps resolve DDR dependencies
and ddrgen is only run if the file does not exist or needs to updating.

Signed-off-by: mikezhang <[email protected]>
@keithc-ca
Copy link
Member

Jenkins test sanity win,zlinux

2 similar comments
@keithc-ca
Copy link
Member

Jenkins test sanity win,zlinux

@keithc-ca
Copy link
Member

Jenkins test sanity win,zlinux

@keithc-ca
Copy link
Member

The third time's the charm?

@keithc-ca
Copy link
Member

The zLinux failure is eclipse-openj9/openj9#2364; ddrgen completed before the Windows failure, so neither is due to this change: merging.

@keithc-ca keithc-ca merged commit ec1d223 into ibmruntimes:openj9 Aug 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants