diff --git a/src/hx/gc/Immix.cpp b/src/hx/gc/Immix.cpp index ea5ce8e8c..c69c19d77 100644 --- a/src/hx/gc/Immix.cpp +++ b/src/hx/gc/Immix.cpp @@ -3154,6 +3154,9 @@ class GlobalAllocator { if (!mLocalPool[p]) { + // Pooled allocators hold no holes. Between GetPooledAllocator and AddLocal an allocator + // is neither pooled nor registered, so a collection in that window would not reset it. + ClearPooledAlloc(inAlloc); mLocalPool[p] = inAlloc; return true; }