on master help sign in
Don't collect below 4K.
commite76033d86edc71d1f78950ddfb6c9b7a616c4799 authorMatus Tejiscak <ziman@functor.sk> dateFri 12 Feb 2016, 20:10 (11 years ago) parent3f3da25
1 file changed+5−1
rts/idris_heap.h+5−1
rts/idris_heap.h+5−1
@@ -13,7 +13,11 @@
1313
1414struct VM;
1515
16−#define C_HEAP_GC_TRIGGER_SIZE(heap_size) (2 * heap_size)
16+#define C_HEAP_GC_TRIGGER_SIZE(heap_size) \
17+ (heap_size < 2048 \
18+ ? 4096 \
19+ : 2 * heap_size \
20+ )
1721
1822typedef void CDataFinalizer(void *);
1923