Skip to content

Commit 35df688

Browse files
authored
Fix assert in GC::Heap_Compact (#3080)
***NO_CI***
1 parent ceed6d6 commit 35df688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CLR/Core/GarbageCollector_Compaction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ void CLR_RT_GarbageCollector::Heap_Compact()
260260

261261
_ASSERTE(relocCurrent->m_destination >= (CLR_UINT8 *)freeRegion_hc->m_payloadStart);
262262
_ASSERTE(relocCurrent->m_destination < (CLR_UINT8 *)freeRegion_hc->m_payloadEnd);
263-
_ASSERTE(relocCurrent->m_start >= (CLR_UINT8 *)freeRegion_hc->m_payloadStart);
264-
_ASSERTE(relocCurrent->m_start < (CLR_UINT8 *)freeRegion_hc->m_payloadEnd);
263+
_ASSERTE(relocCurrent->m_start >= (CLR_UINT8 *)currentSource_hc->m_payloadStart);
264+
_ASSERTE(relocCurrent->m_start < (CLR_UINT8 *)currentSource_hc->m_payloadEnd);
265265
_ASSERTE(moveBytes == (move * sizeof(CLR_RT_HeapBlock)));
266266

267267
#endif

0 commit comments

Comments
 (0)