git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: fix leak in use of Boehm GC
4c26ab0Andy Arvanitis
pcc/include/purescript_memory.hh+1−1
@@ -19,7 +19,7 @@
19 #define GC_THREADS
19 #define GC_THREADS
20 #include <gc/gc_cpp.h>
20 #include <gc/gc_cpp.h>
21 #include <gc/gc_allocator.h>
21 #include <gc/gc_allocator.h>
22− #define WITH_ALLOCATOR(T) , traceable_allocator<T>
22+ #define WITH_ALLOCATOR(T) , gc_allocator<T>
23 #define MANAGED_TYPE(T) T*
23 #define MANAGED_TYPE(T) T*
24 #define MAKE_MANAGED(T) new (GC) T
24 #define MAKE_MANAGED(T) new (GC) T
25 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T
25 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T