From 3ccde5ce55ff4bea3c76c78e237225b1637312af Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 18 Jul 2021 17:03:25 +0300 Subject: [PATCH] builtin: use `prealloc_block_size = 16777216` temporarily --- vlib/builtin/prealloc.c.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/builtin/prealloc.c.v b/vlib/builtin/prealloc.c.v index 0ef66fc650..b0feba6b34 100644 --- a/vlib/builtin/prealloc.c.v +++ b/vlib/builtin/prealloc.c.v @@ -13,7 +13,8 @@ module builtin // NB: `-prealloc` is NOT safe to be used for multithreaded programs! // size of the preallocated chunk -const prealloc_block_size = 16 * 1024 * 1024 +// TODO: see why comptime calculation of integer expressions fails +const prealloc_block_size = 16777216 __global g_memory_block &VMemoryBlock [heap]