1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed hot swapping fix

This commit is contained in:
Brian Fiete 2020-06-15 15:37:49 -07:00
parent d9b81daac8
commit eccd691079

View file

@ -1107,9 +1107,7 @@ void WinDebugger::HotLoad(const Array<String>& objectFiles, int hotIdx)
for (auto dwarf : mDebugTarget->mDbgModules)
dwarf->RevertWritingEnable();
mHotThreadStates.Clear();
int blockAllocSinceClean = mDebugTarget->mHotHeap->mBlockAllocIdx - mDebugTarget->mLastHotHeapCleanIdx;
// Clean up the hot heap every 64MB
int blocksBetweenCleans = (64 * 1024 * 1024) / HotHeap::BLOCK_SIZE;
@ -1142,6 +1140,8 @@ void WinDebugger::HotLoad(const Array<String>& objectFiles, int hotIdx)
::ResumeThread(threadInfo->mHThread);
}
mHotThreadStates.Clear();
if (IsPaused())
{
ClearCallStack();