MetadataAlloc.h 591 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. struct Il2CppGenericClass;
  4. struct Il2CppGenericMethod;
  5. namespace il2cpp
  6. {
  7. namespace vm
  8. {
  9. void MetadataAllocInitialize();
  10. void MetadataAllocCleanup();
  11. // These allocators assume the g_MetadataLock lock is held
  12. void* MetadataMalloc(size_t size);
  13. void* MetadataCalloc(size_t count, size_t size);
  14. // These metadata structures have their own locks, since they do lightweight initialization
  15. Il2CppGenericClass* MetadataAllocGenericClass();
  16. Il2CppGenericMethod* MetadataAllocGenericMethod();
  17. } // namespace vm
  18. } // namespace il2cpp