mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Tweak initial heap size
This commit is contained in:
parent
b0b02c0dc7
commit
6d9b1436ec
2 changed files with 2 additions and 2 deletions
2
gc.c
2
gc.c
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue