diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-29 19:17:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-29 22:55:55 -0700 |
commit | 8afa661dab608a731797a7e85b9b5601b221fc94 (patch) | |
tree | e7b150f6433ef2a5c7346aca847d18af6b49a37b /gc.c | |
parent | 8d76d89d7fc1c50454cf9927682d42dde3180c59 (diff) | |
download | txr-8afa661dab608a731797a7e85b9b5601b221fc94.tar.gz txr-8afa661dab608a731797a7e85b9b5601b221fc94.tar.bz2 txr-8afa661dab608a731797a7e85b9b5601b221fc94.zip |
* gc.c (CHECKOBJ_VEC_SIZE, FRESHOBJ_VEC_SIZE): Increase
to 8 * HEAP_SIZE from 2 * HEAP_SIZE to reduce frequency
of garbage collections.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,10 +46,10 @@ #define PROT_STACK_SIZE 1024 #define HEAP_SIZE 16384 -#define CHECKOBJ_VEC_SIZE (2 * HEAP_SIZE) +#define CHECKOBJ_VEC_SIZE (8 * HEAP_SIZE) #define MUTOBJ_VEC_SIZE (HEAP_SIZE / 4) #define FULL_GC_INTERVAL 40 -#define FRESHOBJ_VEC_SIZE (2 * HEAP_SIZE) +#define FRESHOBJ_VEC_SIZE (8 * HEAP_SIZE) typedef struct heap { struct heap *next; |