mirror of
https://github.com/Dadoum/anisette-v3-server.git
synced 2024-11-21 19:06:07 +00:00
Tell the GC to keep malloc'd blocks in place
This commit is contained in:
parent
5243fad848
commit
61a0e828b0
@ -437,7 +437,7 @@ class AnisetteService {
|
|||||||
|
|
||||||
private ADI makeGarbageCollectedADI(string libraryPath) {
|
private ADI makeGarbageCollectedADI(string libraryPath) {
|
||||||
extern(C) void* malloc_GC(size_t sz) {
|
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) {
|
extern(C) void free_GC(void* ptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user