Default nursery size is 1mb; don't double nursery and accumulation when growing data heap

db4
Slava Pestov 2008-04-05 04:36:13 -05:00
parent 57268bcc7b
commit 545b8a3d05
2 changed files with 3 additions and 5 deletions

View File

@ -91,13 +91,11 @@ F_DATA_HEAP *alloc_data_heap(CELL gens,
F_DATA_HEAP *grow_data_heap(F_DATA_HEAP *data_heap, CELL requested_bytes)
{
CELL new_young_size = (data_heap->young_size * 2) + requested_bytes;
CELL new_aging_size = (data_heap->aging_size * 2) + requested_bytes;
CELL new_tenured_size = (data_heap->tenured_size * 2) + requested_bytes;
return alloc_data_heap(data_heap->gen_count,
new_young_size,
new_aging_size,
data_heap->young_size,
data_heap->aging_size,
new_tenured_size);
}

View File

@ -21,7 +21,7 @@ void default_parameters(F_PARAMETERS *p)
p->gen_count = 3;
p->code_size = 8 * CELLS;
p->young_size = 2;
p->young_size = 1;
p->aging_size = 2;
p->tenured_size = 4 * CELLS;
#endif