Skip to content

Commit

Permalink
Tune the Moon: use 1/100 of available memory for gc_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Feb 9, 2011
1 parent 7683330 commit 09bae79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gc/gc_gms.c
Expand Up @@ -737,7 +737,8 @@ Parrot_gc_gms_init(PARROT_INTERP, ARGIN(Parrot_GC_Init_Args *args))

/* Collect every nM allocated. */
/* Hardcode for now. Will be configured via CLI */
self->gc_threshold = 1024 * 1024;
//self->gc_threshold = 10 * 1024 * 1024;
self->gc_threshold = Parrot_sysmem_amount(interp) / 100;

Parrot_gc_str_initialize(interp, &self->string_gc);
}
Expand Down

0 comments on commit 09bae79

Please sign in to comment.