mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Handled some method slotting reentrancy issues
This commit is contained in:
parent
879ac7f989
commit
dd37d6c092
6 changed files with 55 additions and 21 deletions
|
@ -838,7 +838,7 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
type->mDirty = true;
|
||||
|
||||
bool wantDeleteType = (type->IsOnDemand()) && (deleteOnDemandTypes);
|
||||
|
@ -870,6 +870,8 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild
|
|||
return;
|
||||
}
|
||||
|
||||
BF_ASSERT_REL(typeInst->mDefineState != BfTypeDefineState_DefinedAndMethodsSlotting);
|
||||
|
||||
// We need to verify lookups before we rebuild the type, because a type lookup change needs to count as a TypeDataChanged
|
||||
VerifyTypeLookups(typeInst);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue