1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Register capture priming

This commit is contained in:
Brian Fiete 2022-01-06 11:46:53 -05:00
parent 40288eeb3a
commit 4b1d7047d1

View file

@ -1388,6 +1388,16 @@ bool BFGC::ScanThreads()
{
BP_ZONE("BFGC::ScanThreads");
if (mStackScanIdx == 0)
{
// 'Prime' register capture
intptr regVals[128];
intptr stackPtr = 0;
BfpThreadResult threadResult;
int regValCount = 128;
BfpThread_GetIntRegisters(BfpThread_GetCurrent(), &stackPtr, regVals, &regValCount, &threadResult);
}
mUsingThreadUnlocked = true;
BF_FULL_MEMORY_FENCE();