mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added SEH protection inside ConservativeScan
This commit is contained in:
parent
3100f7e56d
commit
b9eada28ee
1 changed files with 11 additions and 4 deletions
|
@ -808,11 +808,18 @@ void BFGC::ConservativeScan(void* startAddr, int length)
|
|||
void* ptr = (void*)((intptr)startAddr & ~((sizeof(intptr)-1)));
|
||||
void* endAddr = (uint8*)startAddr + length;
|
||||
|
||||
while (ptr < endAddr)
|
||||
__try
|
||||
{
|
||||
void* addr = *(void**)ptr;
|
||||
MarkFromGCThread((bf::System::Object*)addr);
|
||||
ptr = (uint8*)ptr + sizeof(intptr);
|
||||
while (ptr < endAddr)
|
||||
{
|
||||
void* addr = *(void**)ptr;
|
||||
MarkFromGCThread((bf::System::Object*)addr);
|
||||
ptr = (uint8*)ptr + sizeof(intptr);
|
||||
}
|
||||
}
|
||||
__finally
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue