mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08:00 +02:00
Appended fields
This commit is contained in:
parent
52544e6782
commit
1d2811f50d
22 changed files with 596 additions and 52 deletions
|
@ -149,6 +149,19 @@ namespace System
|
|||
public static void ExcludeThreadId(int thereadId) {}
|
||||
#endif
|
||||
|
||||
static void MarkAppendedObject(Object obj)
|
||||
{
|
||||
#if BF_ENABLE_REALTIME_LEAK_CHECK
|
||||
ClassVData* maskedVData = (ClassVData*)(void*)(obj.[Friend]mClassVData & ~(int)0xFF);
|
||||
if (maskedVData == null)
|
||||
return;
|
||||
#else
|
||||
if (obj.mClassVData == null)
|
||||
return;
|
||||
#endif
|
||||
obj.[Friend]GCMarkMembers();
|
||||
}
|
||||
|
||||
static void MarkDerefedObject(Object* obj)
|
||||
{
|
||||
#if BF_ENABLE_REALTIME_LEAK_CHECK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue