Skip to content

Commit

Permalink
Client Request Cached Methods List from JIT Server
Browse files Browse the repository at this point in the history
Added an option that makes the client request a list of cached
methods from the server on bootstrap, and set the count for
those methods as scount to improve rampup

Signed-off-by: Luke Li <[email protected]>
  • Loading branch information
luke-li-2003 committed Sep 9, 2024
1 parent 10fdf65 commit a59001d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiler/control/OMROptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = {
{"regmap", "C\tgenerate GC maps with register maps", SET_OPTION_BIT(TR_RegisterMaps), "F", NOT_IN_SUBSET},
{"reportEvents", "C\tcompile event reporting hooks into code", SET_OPTION_BIT(TR_ReportMethodEnter | TR_ReportMethodExit)},
{"reportMethodEnterExit", "D\treport method enter and exit", SET_OPTION_BIT(TR_ReportMethodEnter | TR_ReportMethodExit), "F"},
{"requestJITServerCachedMethods", "O\trequest the list of methods cached at the server on bootstrap, and prioritise the compilation requests for them", SET_OPTION_BIT(TR_RequestJITServerCachedMethods), "F", NOT_IN_SUBSET},
{"reserveAllLocks", "O\tenable reserving locks for all classes and methods (DEBUG Only)", SET_OPTION_BIT(TR_ReserveAllLocks), "F"},
{"reservingLocks", "O\tenable reserving locks for hot methods on classes that can be reserved", SET_OPTION_BIT(TR_ReservingLocks), "F"},
{"restrictInlinerDuringStartup", "O\trestrict trivial inliner during startup", SET_OPTION_BIT(TR_RestrictInlinerDuringStartup), "F", NOT_IN_SUBSET },
Expand Down
2 changes: 1 addition & 1 deletion compiler/control/OMROptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ enum TR_CompilationOptions
TR_EnableCodeCacheDisclaiming = 0x00000200 + 10,
// Available = 0x00000400 + 10,
TR_EnableCodeCacheDisclaimingSupport = 0x00000800 + 10,
// Available = 0x00001000 + 10,
TR_RequestJITServerCachedMethods = 0x00001000 + 10,
TR_DisableNewMethodOverride = 0x00002000 + 10,
// Available = 0x00004000 + 10,
// Available = 0x00008000 + 10,
Expand Down

0 comments on commit a59001d

Please sign in to comment.