From 21b9b71017e4ab342fc53a70ebb3419a4eaae39c Mon Sep 17 00:00:00 2001 From: Gengchen Tuo Date: Tue, 10 Sep 2024 11:25:30 -0400 Subject: [PATCH] Enable JFR modules when JFR is enabled Signed-off-by: Gengchen Tuo --- closed/custom/common/Modules.gmk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/closed/custom/common/Modules.gmk b/closed/custom/common/Modules.gmk index 394236b8885..8251d292a63 100644 --- a/closed/custom/common/Modules.gmk +++ b/closed/custom/common/Modules.gmk @@ -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 @@ -41,15 +41,20 @@ else # endif +ifeq (false,$(OPENJ9_ENABLE_JFR)) + MODULES_FILTER += \ + jdk.jfr \ + jdk.management.jfr \ + # +endif + MODULES_FILTER += \ jdk.aot \ jdk.hotspot.agent \ jdk.internal.vm.ci \ jdk.internal.vm.compiler \ jdk.internal.vm.compiler.management \ - jdk.jfr \ jdk.jstatd \ - jdk.management.jfr \ # TOP_SRC_DIRS += \