Skip to content

Commit

Permalink
Fix string literal conversion warnings in omr/compiler/infra
Browse files Browse the repository at this point in the history
Fix string literal conversion warnings in omr/compiler/infra

Signed-off-by: Dylan Tuttle <[email protected]>
  • Loading branch information
dylanjtuttle committed Dec 11, 2023
1 parent 3962eb5 commit 473941f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions runtime/compiler/optimizer/InlinerTempForJ9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4048,11 +4048,11 @@ TR_MultipleCallTargetInliner::exceedsSizeThreshold(TR_CallSite *callSite, int by
return false;

TR_J9InlinerPolicy *j9InlinerPolicy = (TR_J9InlinerPolicy *)getPolicy();
static char *polymorphicCalleeSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismCalleeSize");
static const char *polymorphicCalleeSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismCalleeSize");
int polymorphicCalleeSizeThreshold = polymorphicCalleeSizeThresholdStr ? atoi(polymorphicCalleeSizeThresholdStr) : 10;
static char *polymorphicRootSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismRootSize");
static const char *polymorphicRootSizeThresholdStr = feGetEnv("TR_InlinerPolymorphicConservatismRootSize");
int polymorphicRootSizeThreshold = polymorphicRootSizeThresholdStr ? atoi(polymorphicRootSizeThresholdStr) : 30;
static char *trustedInterfacePattern = feGetEnv("TR_TrustedPolymorphicInterfaces");
static const char *trustedInterfacePattern = feGetEnv("TR_TrustedPolymorphicInterfaces");
static TR::SimpleRegex *trustedInterfaceRegex = trustedInterfacePattern ? TR::SimpleRegex::create(trustedInterfacePattern) : NULL;
// we need to be conservative about inlining potentially highly polymorphic interface calls for
// functional frameworks like scala - we limit this to hot and above
Expand Down
2 changes: 1 addition & 1 deletion runtime/compiler/runtime/IProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void printHashedCallSite ( TR_IPHashedCallSite * hcs, ::FILE* fout = stderr, voi

static bool matchesRegularExpression (TR::Compilation* comp) {

static char* cRegex = feGetEnv ("TR_printIfRegex");
static const char *cRegex = feGetEnv ("TR_printIfRegex");
if (cRegex && comp->getOptions())
{
static TR::SimpleRegex * regex = TR::SimpleRegex::create(cRegex);
Expand Down

0 comments on commit 473941f

Please sign in to comment.