Skip to content
6 changes: 3 additions & 3 deletions src/coreclr/jit/emitinl.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,15 @@ inline bool insIsCMOV(instruction ins)
* false. Returns the final result of the callback.
*/
template <typename Callback>
bool emitter::emitGenNoGCLst(Callback& cb, bool skipAllPrologsAndEpilogs /* = false */)
bool emitter::emitGenNoGCLst(Callback& cb, bool skipMainPrologsAndEpilogs /* = false */)
{
for (insGroup* ig = emitIGlist; ig; ig = ig->igNext)
{
if (skipAllPrologsAndEpilogs)
if (skipMainPrologsAndEpilogs)
{
if (ig == emitPrologIG)
continue;
if (ig->igFlags & (IGF_EPILOG | IGF_FUNCLET_PROLOG | IGF_FUNCLET_EPILOG))
if (ig->igFlags & IGF_EPILOG)
continue;
}
if ((ig->igFlags & IGF_NOGCINTERRUPT) && ig->igSize > 0)
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/emitpub.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ unsigned emitEndCodeGen(Compiler* comp,
unsigned emitGetEpilogCnt();

template <typename Callback>
bool emitGenNoGCLst(Callback& cb, bool skipAllPrologsAndEpilogs = false);
bool emitGenNoGCLst(Callback& cb, bool skipMainPrologsAndEpilogs = false);

void emitBegProlog();
unsigned emitGetPrologOffsetEstimate();
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/gcencode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ size_t GCInfo::gcMakeRegPtrTable(BYTE* dest, int mask, const InfoHdr& header, un
if (header.noGCRegionCnt != 0)
{
NoGCRegionEncoder encoder(mask != 0 ? dest : NULL);
compiler->GetEmitter()->emitGenNoGCLst(encoder, /* skipAllPrologsAndEpilogs = */ true);
compiler->GetEmitter()->emitGenNoGCLst(encoder, /* skipMainPrologsAndEpilogs = */ true);
totalSize += encoder.totalSize;
if (mask != 0)
dest += encoder.totalSize;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/gcinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void GCInfo::gcCountForHeader(UNALIGNED unsigned int* pUntrackedCount,
if (compiler->codeGen->GetInterruptible())
{
NoGCRegionCounter counter;
compiler->GetEmitter()->emitGenNoGCLst(counter, /* skipAllPrologsAndEpilogs = */ true);
compiler->GetEmitter()->emitGenNoGCLst(counter, /* skipMainPrologsAndEpilogs = */ true);
noGCRegionCount = counter.noGCRegionCount;
}

Expand Down
Loading