diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-04-05 11:14:12 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-04-05 11:14:12 -0700 |
commit | ff2df80b7b83f3fc003b124309a9101148f2d41f (patch) | |
tree | f62d16536c1a5908ae914701b0b37915d3861f4c /gc.c | |
parent | 2615b13d4fa8ff0e882a5f616eeb9236d570bdcd (diff) | |
download | txr-ff2df80b7b83f3fc003b124309a9101148f2d41f.tar.gz txr-ff2df80b7b83f3fc003b124309a9101148f2d41f.tar.bz2 txr-ff2df80b7b83f3fc003b124309a9101148f2d41f.zip |
* gc.c (FRESHQ_SIZE): Preprocessor symbol renamed to FRESHOBJ_VEC_SIZE.
(freshobj, make_obj): Object and function definitions follow rename.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -46,7 +46,7 @@ #define HEAP_SIZE 16384 #define CHECKOBJ_VEC_SIZE (2 * HEAP_SIZE) #define FULL_GC_INTERVAL 40 -#define FRESHQ_SIZE (2 * HEAP_SIZE) +#define FRESHOBJ_VEC_SIZE (2 * HEAP_SIZE) typedef struct heap { struct heap *next; @@ -78,7 +78,7 @@ int gc_enabled = 1; #if CONFIG_GEN_GC static val checkobj[CHECKOBJ_VEC_SIZE]; static int checkobj_idx; -static val freshobj[FRESHQ_SIZE]; +static val freshobj[FRESHOBJ_VEC_SIZE]; static int freshobj_idx; static int full_gc; #endif @@ -162,9 +162,9 @@ val make_obj(void) int tries; #if CONFIG_GEN_GC - if (opt_gc_debug || freshobj_idx >= FRESHQ_SIZE) { + if (opt_gc_debug || freshobj_idx >= FRESHOBJ_VEC_SIZE) { gc(); - assert (freshobj_idx < FRESHQ_SIZE); + assert (freshobj_idx < FRESHOBJ_VEC_SIZE); } #else if (opt_gc_debug) |