Skip to content

Commit c84503c

Browse files
committed
[MERGE #1748 @pleath] Add OOP JIT check
Merge pull request #1748 from pleath:merge1610 Add OOP JIT check missing from code coming from release branch
2 parents 8d16c1a + a56ba2a commit c84503c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Backend/Encoder.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ Encoder::Encode()
337337
m_func->GetJITOutput()->RecordNativeCode(m_func, m_encodeBuffer, alloc);
338338

339339
#if defined(_M_IX86) || defined(_M_X64)
340-
ValidateCRCOnFinalBuffer((BYTE*)alloc->allocation->address, codeSize, totalJmpTableSizeInBytes, m_encodeBuffer, initialCRCSeed, bufferCRC, isSuccessBrShortAndLoopAlign);
340+
if (!JITManager::GetJITManager()->IsJITServer())
341+
{
342+
ValidateCRCOnFinalBuffer((BYTE *)alloc->allocation->address, codeSize, totalJmpTableSizeInBytes, m_encodeBuffer, initialCRCSeed, bufferCRC, isSuccessBrShortAndLoopAlign);
343+
}
341344
#endif
342345

343346
#ifdef _M_X64

0 commit comments

Comments
 (0)