Skip to content

Commit

Permalink
Add option to guard uses of Sym Validation Manager
Browse files Browse the repository at this point in the history
Signed-off-by: Irwin D'Souza <dsouzai@ca.ibm.com>
  • Loading branch information
Irwin D'Souza committed Oct 4, 2018
1 parent 5e15900 commit 5f2e1cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions compiler/control/OMROptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = {
{"useSamplingJProfilingForInterpSampledMethods","M\tHeuristic. Use samplingJProfiling for methods sampled by interpreter", SET_OPTION_BIT(TR_UseSamplingJProfilingForInterpSampledMethods), "F", NOT_IN_SUBSET },
{"useSamplingJProfilingForLPQ", "M\tHeuristic. Use samplingJProfiling for methods from low priority queue", SET_OPTION_BIT(TR_UseSamplingJProfilingForLPQ), "F", NOT_IN_SUBSET },
{"useStrictStartupHints", "M\tStartup hints from application obeyed strictly", SET_OPTION_BIT(TR_UseStrictStartupHints), "F", NOT_IN_SUBSET},
{"useSymbolValidationManager", "M\tUse Symbol Validation Manager for Relocatable Compile Validations", SET_OPTION_BIT(TR_UseSymbolValidationManager), "F", NOT_IN_SUBSET},
{"useVmTotalCpuTimeAsAbstractTime", "M\tUse VmTotalCpuTime as abstractTime", SET_OPTION_BIT(TR_UseVmTotalCpuTimeAsAbstractTime), "F", NOT_IN_SUBSET },
{"varyInlinerAggressivenessWithTime", "M\tVary inliner aggressiveness with abstract time", SET_OPTION_BIT(TR_VaryInlinerAggressivenessWithTime), "F", NOT_IN_SUBSET },
{"verifyReferenceCounts", "I\tverify the sanity of object reference counts before manipulation", SET_OPTION_BIT(TR_VerifyReferenceCounts), "F"},
Expand Down
2 changes: 1 addition & 1 deletion compiler/control/OMROptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ enum TR_CompilationOptions
TR_TraceMarkingOfHotFields = 0x00001000 + 4,
TR_EnableAnnotations = 0x00002000 + 4, // change to disable when on by default
TR_UnresolvedAreNotColdAtCold = 0x00004000 + 4, // cold block marker marks unresolved blocks as cold at hotness cold or less
// AVAILABLE = 0x00008000 + 4,
TR_UseSymbolValidationManager = 0x00008000 + 4,
TR_EnablePIDExtension = 0x00010000 + 4,
TR_GenerateCompleteInlineRanges = 0x00020000 + 4,
TR_DisableInliningOfNatives = 0x00040000 + 4,
Expand Down
4 changes: 3 additions & 1 deletion compiler/env/TRMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ const char * objectName[] =
"Debug",

"ClientSessionData",
"ROMClass"
"ROMClass",

"SymbolValidationManager"
};


Expand Down
4 changes: 2 additions & 2 deletions compiler/env/TRMemory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ class TR_MemoryBase
ClientSessionData,
ROMClass,

SymbolValidationManager,

NumObjectTypes,
// If adding new object types above, add the corresponding names
// to objectName[] array defined in TRMemory.cpp
Expand Down Expand Up @@ -682,8 +684,6 @@ inline void *
operator new[](size_t size, PERSISTENT_NEW_DECLARE) { return TR_Memory::jitPersistentAlloc(size, TR_MemoryBase::UnknownType); }




/*
* TR_ByteCodeInfo exists in an awkward situation where it seems TR_ALLOC()
* would be inappropriate for the structure, despite things needing to allocate them,
Expand Down

0 comments on commit 5f2e1cc

Please sign in to comment.