mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed hot swapping fix
This commit is contained in:
parent
d9b81daac8
commit
eccd691079
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue