[K/N] Use mimalloc for kotlin objects only ^KT-52130
Merge-request: KT-MR-5805 Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
This commit is contained in:
committed by
Space
parent
6b09ace099
commit
89afa4c5b5
@@ -21,6 +21,7 @@
|
||||
#include "KAssert.h"
|
||||
#include "Memory.h"
|
||||
#include "ObjCExportInit.h"
|
||||
#include "ObjectAlloc.hpp"
|
||||
#include "Porting.h"
|
||||
#include "Runtime.h"
|
||||
#include "RuntimePrivate.hpp"
|
||||
@@ -102,6 +103,7 @@ volatile GlobalRuntimeStatus globalRuntimeStatus = kGlobalRuntimeUninitialized;
|
||||
|
||||
RuntimeState* initRuntime() {
|
||||
SetKonanTerminateHandler();
|
||||
initObjectPool();
|
||||
RuntimeState* result = new (std_support::kalloc) RuntimeState();
|
||||
if (!result) return kInvalidRuntime;
|
||||
RuntimeCheck(!isValidRuntime(), "No active runtimes allowed");
|
||||
|
||||
Reference in New Issue
Block a user