Add support for allocator type in Dictionary

This commit is contained in:
Wojtek Figat
2021-07-08 00:33:51 +02:00
parent f5e5686853
commit 4765e1af12
17 changed files with 170 additions and 181 deletions

View File

@@ -293,7 +293,7 @@ public:
/// <summary>
/// The scripting types cache that maps the managed class to the scripting type index. Build after assembly is loaded and scripting types get the managed classes information.
/// </summary>
Dictionary<MonoClass*, int32> ClassToTypeIndex;
Dictionary<MonoClass*, int32, HeapAllocation> ClassToTypeIndex;
static ScriptingObject* ManagedObjectSpawn(const ScriptingObjectSpawnParams& params);
static MMethod* FindMethod(MClass* mclass, const ScriptingTypeMethodSignature& signature);

View File

@@ -111,7 +111,7 @@ public:
public:
typedef Dictionary<Guid, Guid> IdsMappingTable;
typedef Dictionary<Guid, Guid, HeapAllocation> IdsMappingTable;
/// <summary>
/// The objects lookup identifier mapping used to override the object ids on FindObject call (used by the object references deserialization).