Tweak initial heap size

This commit is contained in:
Justin Ethier 2016-04-13 21:21:48 -04:00
parent b0b02c0dc7
commit 6d9b1436ec
2 changed files with 2 additions and 2 deletions

2
gc.c
View file

@ -386,7 +386,7 @@ int gc_grow_heap(gc_heap *h, int heap_type, size_t size, size_t chunk_size)
// so for now it is not used. If it is used again, the initial heaps will
// need to start at a lower size (EG 1 MB).
{
size_t prev_size = 0 * 1024 * 1024;
size_t prev_size = 2 * 1024 * 1024;
new_size = 0;
h_last = h;
while (h_last->next) {

View file

@ -164,7 +164,7 @@ static bool set_insert(ck_hs_t *hs, const void *value)
void gc_init_heap(long heap_size)
{
size_t initial_heap_size = 1 * 1024 * 1024;
size_t initial_heap_size = 3 * 1024 * 1024;
Cyc_heap = malloc(sizeof(gc_heap_root));
Cyc_heap->heap = gc_heap_create(HEAP_REST, initial_heap_size, 0, 0);
Cyc_heap->small_obj_heap = gc_heap_create(HEAP_SM, initial_heap_size, 0, 0);