summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-04-05 11:14:12 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-04-05 11:14:12 -0700
commitff2df80b7b83f3fc003b124309a9101148f2d41f (patch)
treef62d16536c1a5908ae914701b0b37915d3861f4c /gc.c
parent2615b13d4fa8ff0e882a5f616eeb9236d570bdcd (diff)
downloadtxr-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 546be894..ebbb59ab 100644
--- a/gc.c
+++ b/gc.c
@@ -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)