From 9b726ba746c7b5e3b59dbd9f345dcafeab454302 Mon Sep 17 00:00:00 2001 From: Gita Koblents Date: Wed, 13 Sep 2023 13:40:50 -0400 Subject: [PATCH] Add option to enable Code Cache disclaiming --- compiler/control/OMROptions.cpp | 1 + compiler/control/OMROptions.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/control/OMROptions.cpp b/compiler/control/OMROptions.cpp index 55d52b82a10..291eea69e1d 100644 --- a/compiler/control/OMROptions.cpp +++ b/compiler/control/OMROptions.cpp @@ -677,6 +677,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = { {"enableClassChainSharing", "M\tenable class sharing", SET_OPTION_BIT(TR_EnableClassChainSharing), "F", NOT_IN_SUBSET}, {"enableClassChainValidationCaching", "M\tenable class chain validation caching", SET_OPTION_BIT(TR_EnableClassChainValidationCaching), "F", NOT_IN_SUBSET}, {"enableCodeCacheConsolidation", "M\tenable code cache consolidation", SET_OPTION_BIT(TR_EnableCodeCacheConsolidation), "F", NOT_IN_SUBSET}, + {"enableCodeCacheDisclaiming", "M\tenable memory disclaiming for code cache (linux specific).", SET_OPTION_BIT(TR_EnableCodeCacheDisclaiming),"F", NOT_IN_SUBSET}, {"enableColdCheapTacticalGRA", "O\tenable cold cheap tactical GRA", SET_OPTION_BIT(TR_EnableColdCheapTacticalGRA), "F"}, {"enableCompilationBeforeCheckpoint", "C\tenable compilation before checkpoint", RESET_OPTION_BIT(TR_DisableCompilationBeforeCheckpoint), "F", NOT_IN_SUBSET}, {"enableCompilationSpreading", "C\tenable adding spreading invocations to methods before compiling", SET_OPTION_BIT(TR_EnableCompilationSpreading), "F", NOT_IN_SUBSET}, diff --git a/compiler/control/OMROptions.hpp b/compiler/control/OMROptions.hpp index 530a55979f8..1e3eafbf9bd 100644 --- a/compiler/control/OMROptions.hpp +++ b/compiler/control/OMROptions.hpp @@ -390,7 +390,7 @@ enum TR_CompilationOptions TR_DisableIProfilerDataDisclaiming = 0x00000040 + 10, TR_DisclaimMemoryOnSwap = 0x00000080 + 10, TR_FirstLevelProfiling = 0x00000100 + 10, - // Available = 0x00000200 + 10, + TR_EnableCodeCacheDisclaiming = 0x00000200 + 10, // Available = 0x00000400 + 10, // Available = 0x00000800 + 10, // Available = 0x00001000 + 10,