Skip to content

Commit

Permalink
Add JFR Flags
Browse files Browse the repository at this point in the history
Signed-off-by: tajila <atobia@ca.ibm.com>
  • Loading branch information
tajila authored and Tobi committed Mar 27, 2024
1 parent 520531c commit 1f54e6e
Show file tree
Hide file tree
Showing 5 changed files with 22,667 additions and 18,128 deletions.
15 changes: 14 additions & 1 deletion closed/OpenJ9.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===========================================================================
# (c) Copyright IBM Corp. 2017, 2023 All Rights Reserved
# (c) Copyright IBM Corp. 2017, 2024 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
Expand Down Expand Up @@ -180,6 +180,13 @@ else
SPEC_SED_SCRIPT += $(call SedDisable,module_ddr)
endif

# Adjust JFR enablement flags.
ifeq (true,$(OPENJ9_ENABLE_JFR))
FEATURE_SED_SCRIPT += $(call SedEnable,opt_jfr)
else
FEATURE_SED_SCRIPT += $(call SedDisable,opt_jfr)
endif

# Adjust JITServer enablement flags.
ifeq (true,$(OPENJ9_ENABLE_JITSERVER))
FEATURE_SED_SCRIPT += $(call SedEnable,opt_jitserver)
Expand Down Expand Up @@ -349,6 +356,12 @@ ifneq (,$(CCACHE))
CMAKE_ARGS += "-DCMAKE_C_COMPILER_LAUNCHER=$(ESCAPED_CCACHE)"
endif # CCACHE

ifeq (true,$(OPENJ9_ENABLE_JFR))
CMAKE_ARGS += -DJ9VM_OPT_JFR=ON
else # OPENJ9_ENABLE_JFR
CMAKE_ARGS += -DJ9VM_OPT_JFR=OFF
endif # OPENJ9_ENABLE_JFR

ifeq (true,$(OPENJ9_ENABLE_JITSERVER))
CMAKE_ARGS += -DJ9VM_OPT_JITSERVER=ON

Expand Down
Loading

0 comments on commit 1f54e6e

Please sign in to comment.