Skip to content

Commit

Permalink
Add an option to buffer expensive JITServer compilations
Browse files Browse the repository at this point in the history
This commit adds an option
`TR_DisableJITServerBufferedExpensiveCompilations`,
which can be enabled using
`-Xjit:disableJITServerBufferedExpensiveCompilations`
command line option.
The option is used by OpenJ9 to enable buffering of
expensive local compilations on JITServer client.

Signed-off-by: Dmitry Ten <Dmitry.Ten@ibm.com>
  • Loading branch information
dmitry-ten committed May 26, 2021
1 parent 7552d5f commit 6d9e4dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions compiler/control/OMROptions.cpp
Expand Up @@ -394,6 +394,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = {
{"disableIterativeSA", "O\trevert back to a recursive version of Structural Analysis", SET_OPTION_BIT(TR_DisableIterativeSA), "P"},
{"disableIVTT", "O\tdisable IV Type transformation", TR::Options::disableOptimization, IVTypeTransformation, 0, "P"},
{"disableJavaEightStartupHeuristics", "M\t", SET_OPTION_BIT(TR_DisableJava8StartupHeuristics), "F", NOT_IN_SUBSET },
{"disableJITServerBufferedExpensiveCompilations","O\tdisable JITServer buffered expensive compilations", SET_OPTION_BIT(TR_DisableJITServerBufferedExpensiveCompilations), "F"},
{"disableJProfiling", "O\tdisable JProfiling", RESET_OPTION_BIT(TR_EnableJProfiling), "F"},
{"disableJProfilingInProfilingCompilations", "O\tDisable use of jprofiling instrumentation in profiling compilations", SET_OPTION_BIT(TR_DisableJProfilingInProfilingCompilations), "F"},
{"disableJProfilingThread", "O\tdisable separate thread for JProfiling", SET_OPTION_BIT(TR_DisableJProfilerThread), "F", NOT_IN_SUBSET},
Expand Down
52 changes: 26 additions & 26 deletions compiler/control/OMROptions.hpp
Expand Up @@ -121,32 +121,32 @@ enum TR_CompilationOptions

// Option word 1
//
TR_DisableInterpreterSampling = 0x00000020 + 1,
TR_DisableEDO = 0x00000040 + 1,
TR_DisableThrowToGoto = 0x00000080 + 1,
TR_DisableMonitorCoarsening = 0x00000100 + 1,
// Available = 0x00000200 + 1,
TR_DisableVirtualInlining = 0x00000400 + 1,
TR_DisableNonvirtualInlining = 0x00000800 + 1,
TR_DisableSyncMethodInlining = 0x00001000 + 1,
TR_DisableTailRecursion = 0x00002000 + 1,
TR_DisableInterfaceInlining = 0x00004000 + 1,
TR_DisableProfiledInlining = 0x00008000 + 1,
TR_DisableAbstractInlining = 0x00010000 + 1,
TR_DisableHierarchyInlining = 0x00020000 + 1,
TR_DisableDirectMemoryOps = 0x00040000 + 1,
TR_DisableArraySetOpts = 0x00100000 + 1,
TR_TraceLiveMonitorMetadata = 0x00200000 + 1,
TR_DisableAllocationInlining = 0x00400000 + 1,
TR_DisableInlineCheckCast = 0x00800000 + 1,
TR_DisableInlineIfInstanceOf = 0x01000000 + 1,
TR_DisableInlineInstanceOf = 0x02000000 + 1,
TR_DisableInlineMonEnt = 0x04000000 + 1,
TR_DisableInlineMonExit = 0x08000000 + 1,
TR_DisableUnsafe = 0x10000000 + 1,
TR_DisableVirtualGuardNOPing = 0x20000000 + 1,
TR_DisableNewInstanceImplOpt = 0x40000000 + 1,
TR_DisableFastStringIndexOf = 0x80000000 + 1,
TR_DisableInterpreterSampling = 0x00000020 + 1,
TR_DisableEDO = 0x00000040 + 1,
TR_DisableThrowToGoto = 0x00000080 + 1,
TR_DisableMonitorCoarsening = 0x00000100 + 1,
TR_DisableJITServerBufferedExpensiveCompilations = 0x00000200 + 1,
TR_DisableVirtualInlining = 0x00000400 + 1,
TR_DisableNonvirtualInlining = 0x00000800 + 1,
TR_DisableSyncMethodInlining = 0x00001000 + 1,
TR_DisableTailRecursion = 0x00002000 + 1,
TR_DisableInterfaceInlining = 0x00004000 + 1,
TR_DisableProfiledInlining = 0x00008000 + 1,
TR_DisableAbstractInlining = 0x00010000 + 1,
TR_DisableHierarchyInlining = 0x00020000 + 1,
TR_DisableDirectMemoryOps = 0x00040000 + 1,
TR_DisableArraySetOpts = 0x00100000 + 1,
TR_TraceLiveMonitorMetadata = 0x00200000 + 1,
TR_DisableAllocationInlining = 0x00400000 + 1,
TR_DisableInlineCheckCast = 0x00800000 + 1,
TR_DisableInlineIfInstanceOf = 0x01000000 + 1,
TR_DisableInlineInstanceOf = 0x02000000 + 1,
TR_DisableInlineMonEnt = 0x04000000 + 1,
TR_DisableInlineMonExit = 0x08000000 + 1,
TR_DisableUnsafe = 0x10000000 + 1,
TR_DisableVirtualGuardNOPing = 0x20000000 + 1,
TR_DisableNewInstanceImplOpt = 0x40000000 + 1,
TR_DisableFastStringIndexOf = 0x80000000 + 1,

// Option word 2
//
Expand Down

0 comments on commit 6d9e4dc

Please sign in to comment.