Skip to content

Commit 6937f24

Browse files
authored
Fix string relocation handler (#3073)
1 parent 46e34bd commit 6937f24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CLR/Core/CLR_RT_HeapBlock.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,10 @@ void CLR_RT_HeapBlock::Relocate_String()
24662466
{
24672467
NATIVE_PROFILE_CLR_CORE();
24682468

2469-
CLR_RT_GarbageCollector::Heap_Relocate((void **)&m_data);
2469+
CLR_RT_GarbageCollector::Heap_Relocate((void **)&m_data.string.m_text);
2470+
#if !defined(NANOCLR_NO_ASSEMBLY_STRINGS)
2471+
CLR_RT_GarbageCollector::Heap_Relocate((void **)&m_data.string.m_assm);
2472+
#endif
24702473
}
24712474

24722475
void CLR_RT_HeapBlock::Relocate_Obj()

0 commit comments

Comments
 (0)