Tell the GC to keep malloc'd blocks in place

This commit is contained in:
Dadoum 2023-08-12 03:06:41 +02:00
parent 5243fad848
commit 61a0e828b0

View File

@ -437,7 +437,7 @@ class AnisetteService {
private ADI makeGarbageCollectedADI(string libraryPath) {
extern(C) void* malloc_GC(size_t sz) {
return GC.malloc(sz);
return GC.malloc(sz, GC.BlkAttr.NO_MOVE);
}
extern(C) void free_GC(void* ptr) {