changed: closures use temp allocator
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 20 Apr 2023 14:58:06 +0000 (09:58 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 20 Apr 2023 14:58:06 +0000 (09:58 -0500)
core/builtin.onyx

index 1cea27ae23da133bd3bfcb9e3f2033957475f7e3..ef4354a19469da9be0edff81f2008b0357bba05f 100644 (file)
@@ -474,7 +474,7 @@ __implicit_bool_cast :: #match -> bool {}
     changed to a configurable way, but for now it simply allocates out of the heap allocator.
 """
 __closure_block_allocate :: (size: i32) -> rawptr {
-    return raw_alloc(context.allocator, size);
+    return raw_alloc(context.temp_allocator, size);
 }