diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-04-05 09:41:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-04-05 09:41:49 -0700 |
commit | 050fe79a752814cf63ae9f40620febbb86cae1ce (patch) | |
tree | d3aeb85e115ef1621513be9c49ad7b5a676c3d40 /dep.mk | |
parent | c162f73f9cfd0bb48675dc11bd56ac359451510b (diff) | |
download | txr-050fe79a752814cf63ae9f40620febbb86cae1ce.tar.gz txr-050fe79a752814cf63ae9f40620febbb86cae1ce.tar.bz2 txr-050fe79a752814cf63ae9f40620febbb86cae1ce.zip |
Code cleanup and tweaking.
* gc.c (BACKPTR_VEC_SIZE): Preprocessor symbol renamed to
CHECKOBJ_VEC_SIZE.
(FULL_GC_INTERVAL): Increased to 40 since the modified
algorithm now leaves less work for the full gc to do.
(backptr, backptr_idx): Static variables renamed to
checkobj and checkobj_idx.
(mark): Follows rename of backptr and backptr_idx.
(gc): Commented out handy printf added.
(gc_set): Use in_malloc_range check to avoid adding to
the check array pointers which are being stored in non-heap locations,
since non-heap locations are already GC roots.
(gc_mutated): Follows variable renaming.
(gc_push): Just do the push using gc_set.
* lib.c (malloc_low_bound, malloc_high_bound): New variables.
(chk_malloc, chk_calloc, chk_realloc): Updated malloc_low_bound
and malloc_high_bound.
(in_malloc_range): New function.
* lib.h (in_malloc_range): Declared.
Diffstat (limited to 'dep.mk')
0 files changed, 0 insertions, 0 deletions