Skip to content

Commit 5362da6

Browse files
authored
Merge pull request #22752 from KavinSatheeskumar/fix_indentation
Fix formatting in CompilationThread.cpp
2 parents 7cc8ab0 + 70dd37f commit 5362da6

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

runtime/compiler/control/CompilationThread.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9263,30 +9263,30 @@ TR::CompilationInfoPerThreadBase::wrappedCompile(J9PortLibrary *portLib, void *
92639263
&target);
92649264

92659265
#if defined(J9VM_OPT_JITSERVER)
9266-
if (that->_methodBeingCompiled->isOutOfProcessCompReq())
9267-
{
9268-
// use the default code cache
9269-
compiler->getOptions()->setCodeCacheKind(TR::CodeCacheKind::DEFAULT_CC);
9270-
}
9271-
else
9266+
if (that->_methodBeingCompiled->isOutOfProcessCompReq())
9267+
{
9268+
// use the default code cache
9269+
compiler->getOptions()->setCodeCacheKind(TR::CodeCacheKind::DEFAULT_CC);
9270+
}
9271+
else
92729272
#endif
9273-
{
9274-
TR::SimpleRegex *regex = compiler->getOptions()->getTransientClassRegex();
9275-
if (regex)
9276-
{
9277-
J9Method *method = details.getMethod();
9278-
J9UTF8 *className = J9ROMCLASS_CLASSNAME(J9_CLASS_FROM_METHOD(method)->romClass);
9279-
// TR::SimpleRegex::match needs a NULL-terminated string
9280-
size_t classNameLength = J9UTF8_LENGTH(className);
9281-
char *name = (char*)compiler->trMemory()->allocateMemory(classNameLength+1, stackAlloc);
9282-
strncpy(name, (char*)J9UTF8_DATA(className), classNameLength);
9283-
name[classNameLength] = '\0';
9284-
if (TR::SimpleRegex::match(regex, name))
92859273
{
9286-
compiler->getOptions()->setCodeCacheKind(TR::CodeCacheKind::TRANSIENT_CODE_CC);
9274+
TR::SimpleRegex *regex = compiler->getOptions()->getTransientClassRegex();
9275+
if (regex)
9276+
{
9277+
J9Method *method = details.getMethod();
9278+
J9UTF8 *className = J9ROMCLASS_CLASSNAME(J9_CLASS_FROM_METHOD(method)->romClass);
9279+
// TR::SimpleRegex::match needs a NULL-terminated string
9280+
size_t classNameLength = J9UTF8_LENGTH(className);
9281+
char *name = (char*)compiler->trMemory()->allocateMemory(classNameLength+1, stackAlloc);
9282+
strncpy(name, (char*)J9UTF8_DATA(className), classNameLength);
9283+
name[classNameLength] = '\0';
9284+
if (TR::SimpleRegex::match(regex, name))
9285+
{
9286+
compiler->getOptions()->setCodeCacheKind(TR::CodeCacheKind::TRANSIENT_CODE_CC);
9287+
}
9288+
}
92879289
}
9288-
}
9289-
}
92909290
#if defined(J9VM_OPT_JITSERVER)
92919291
// JITServer TODO: put info in optPlan so that compilation constructor can do this
92929292
if (that->_methodBeingCompiled->isRemoteCompReq())

0 commit comments

Comments
 (0)