Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define OPENJ9_BUILD for JIT when similarly named env var is set #8668

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Feb 26, 2020

The JIT code looks at the following macro:
J9_SHARED_CACHE_DEFAULT_BOOT_SHARING(vm)
which in turn depends on OPENJ9_BUILD being defined.
VM makefiles define OPENJ9_BUILD based on a similarly named
environment variable:

ifeq ($(OPENJ9_BUILD),true)
CFLAGS+=-DOPENJ9_BUILD
CXXFLAGS+=-DOPENJ9_BUILD
CPPFLAGS+=-DOPENJ9_BUILD
endif

However, this define does not apply to the JIT code.
This commit rectifies the situation by changing the JIT makefiles
to inspect OPENJ9_BUILD environment variable and to set the
OPENJ9_BUILD define accordingly.

Closes: #8660

Signed-off-by: Marius Pirvu mpirvu@ca.ibm.com

The JIT code looks at the following macro:
  `J9_SHARED_CACHE_DEFAULT_BOOT_SHARING(vm)`
which in turn depends on `OPENJ9_BUILD` being defined.
VM makefiles define `OPENJ9_BUILD` based on a similarly named
environment variable:

ifeq ($(OPENJ9_BUILD),true)
CFLAGS+=-DOPENJ9_BUILD
CXXFLAGS+=-DOPENJ9_BUILD
CPPFLAGS+=-DOPENJ9_BUILD
endif

However, this define does not apply to the JIT code.
This commit rectifies the situation by changing the JIT makefiles
to inspect OPENJ9_BUILD environment variable and to set the
`OPENJ9_BUILD` define accordingly.

Closes: eclipse-openj9#8660

Signed-off-by: Marius Pirvu <mpirvu@ca.ibm.com>
@fjeremic
Copy link
Contributor

fjeremic commented Feb 26, 2020

Do we need to define this in the CMakeLists.txt for the compiler [1] or will we picked them up from the VM? @dnakamura FYI.

[1] https://github.com/eclipse/openj9/blob/master/runtime/compiler/CMakeLists.txt

@dnakamura
Copy link
Contributor

@fjeremic Looks like the compiler is inheriting it properly from the vm

@fjeremic
Copy link
Contributor

Jenkins test sanity all jdk8

@fjeremic fjeremic self-assigned this Feb 26, 2020
@fjeremic fjeremic merged commit 687ff96 into eclipse-openj9:master Feb 26, 2020
@mpirvu mpirvu deleted the reduceCounts branch March 3, 2020 14:45
@mpirvu mpirvu mentioned this pull request Mar 6, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Startup time regression from 0.17 to 0.18.1 openj9 release
3 participants