Skip to content

Commit

Permalink
Add dontFoldStaticFinalFields={} option
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmpapin committed Jun 5, 2024
1 parent e32d21b commit a2f79c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/control/OMROptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = {
{"dontDowngradeToCold", "M\tdon't downgrade first time compilations from warm to cold", SET_OPTION_BIT(TR_DontDowngradeToCold), "F", NOT_IN_SUBSET},
{"dontDowngradeToColdDuringGracePeriod","M\tdon't downgrade first time compilations from warm to cold during grace period (first second of run)", SET_OPTION_BIT(TR_DontDowgradeToColdDuringGracePeriod), "F", NOT_IN_SUBSET },
{"dontDowngradeWhenRIIsTemporarilyOff","M\t", SET_OPTION_BIT(TR_DontDowngradeWhenRIIsTemporarilyOff), "F", NOT_IN_SUBSET },
{"dontFoldStaticFinalFields=", "O{regex}\tstatic final fields to avoid folding, to be matched against '<class>.<field>:<sig>', e.g. 'Foo.BAR:LBar;'", TR::Options::setRegex, offsetof(OMR::Options, _dontFoldStaticFinalFields), 0, "P"},
{"dontIncreaseCountsForNonBootstrapMethods", "M\t", RESET_OPTION_BIT(TR_IncreaseCountsForNonBootstrapMethods), "F", NOT_IN_SUBSET }, // Xjit: option
{"dontInline=", "O{regex}\tlist of callee methods to not inline",
TR::Options::setRegex, offsetof(OMR::Options, _dontInline), 0, "P"},
Expand Down
3 changes: 3 additions & 0 deletions compiler/control/OMROptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@ class OMR_EXTENSIBLE Options
_classesWithFolableFinalFields = NULL;
_disabledIdiomPatterns = NULL;
_suppressEA = NULL;
_dontFoldStaticFinalFields = NULL;
_gcCardSize = 0;
_heapBase = 0;
_heapTop = 0;
Expand Down Expand Up @@ -1724,6 +1725,7 @@ class OMR_EXTENSIBLE Options
TR::SimpleRegex * getClassesWithFoldableFinalFields(){return _classesWithFolableFinalFields;}
TR::SimpleRegex * getDisabledIdiomPatterns() {return _disabledIdiomPatterns;}
TR::SimpleRegex * getSuppressEARegex() {return _suppressEA;}
TR::SimpleRegex * getDontFoldStaticFinalFields() {return _dontFoldStaticFinalFields;}

char* getInduceOSR() {return _induceOSR;}
int32_t getBigCalleeThreshold() const {return _bigCalleeThreshold;}
Expand Down Expand Up @@ -2390,6 +2392,7 @@ class OMR_EXTENSIBLE Options
TR::SimpleRegex * _classesWithFolableFinalFields;
TR::SimpleRegex * _disabledIdiomPatterns;
TR::SimpleRegex * _suppressEA;
TR::SimpleRegex * _dontFoldStaticFinalFields;
uintptr_t _gcCardSize;
uintptr_t _heapBase;
uintptr_t _heapTop;
Expand Down

0 comments on commit a2f79c8

Please sign in to comment.