Skip to content

Commit a4f409b

Browse files
committed
remove invalid assert for jit page state
1 parent c3d85d4 commit a4f409b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Backend/JITOutput.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ JITOutput::RecordNativeCodeSize(Func *func, uint32 bytes, ushort pdataCount, ush
104104

105105
EmitBufferAllocation *allocation = func->GetEmitBufferManager()->AllocateBuffer(bytes, &buffer, pdataCount, xdataSize, canAllocInPreReservedHeapPageSegment, true);
106106

107-
#if DBG
108-
MEMORY_BASIC_INFORMATION memBasicInfo;
109-
size_t resultBytes = VirtualQueryEx(func->GetThreadContextInfo()->GetProcessHandle(), allocation->allocation->address, &memBasicInfo, sizeof(memBasicInfo));
110-
Assert(resultBytes != 0 && memBasicInfo.Protect == PAGE_EXECUTE);
111-
#endif
112-
113107
Assert(allocation != nullptr);
114108
if (buffer == nullptr)
115109
Js::Throw::OutOfMemory();

0 commit comments

Comments
 (0)