Skip to content

Commit

Permalink
Add #define for GC_DEFAULT_MIN_THRESHOLD
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed Feb 2, 2011
1 parent 0d519eb commit d34ec47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc/gc_ms2.c
Expand Up @@ -641,7 +641,7 @@ Parrot_gc_ms2_init(PARROT_INTERP, ARGIN(Parrot_GC_Init_Args *args))
: GC_DEFAULT_DYNAMIC_THRESHOLD;
self->min_threshold = args->min_threshold
? args->min_threshold
: 4 * 1024 * 1024;
: GC_DEFAULT_MIN_THRESHOLD;
self->gc_threshold = self->min_threshold;

Parrot_gc_str_initialize(interp, &self->string_gc);
Expand Down
1 change: 1 addition & 0 deletions src/gc/gc_private.h
Expand Up @@ -47,6 +47,7 @@ extern void *flush_reg_store(void);
#define POOL_MAX_BYTES 65536 * 128
#define GC_SIZE_THRESHOLD 1024 * 1024
#define GC_DEFAULT_DYNAMIC_THRESHOLD 75
#define GC_DEFAULT_MIN_THRESHOLD 4 * 1024 * 1024

#define PMC_HEADERS_PER_ALLOC 4096 * 10 / sizeof (PMC)
#define BUFFER_HEADERS_PER_ALLOC 4096 / sizeof (Buffer)
Expand Down

0 comments on commit d34ec47

Please sign in to comment.