diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-25 11:33:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-25 11:33:22 -0700 |
commit | ddd9073c71ea80702a0c3d67ebd644b5f93ce07e (patch) | |
tree | 15d57880d53145ae494d4d60db179421eac47af7 /gc.c | |
parent | 09f172c98f79f52a6e5c0e4ec87918a6e74aaccf (diff) | |
download | txr-ddd9073c71ea80702a0c3d67ebd644b5f93ce07e.tar.gz txr-ddd9073c71ea80702a0c3d67ebd644b5f93ce07e.tar.bz2 txr-ddd9073c71ea80702a0c3d67ebd644b5f93ce07e.zip |
Expose memory region marking function.
* gc.c (gc_mark_mem): New function.
* gc.h (gc_mark_mem): Declared.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -735,6 +735,11 @@ void gc_conservative_mark(val maybe_obj) mark_obj_maybe(maybe_obj); } +void gc_mark_mem(val *low, val *high) +{ + mark_mem_region(low, high); +} + int gc_is_reachable(val obj) { return is_ptr(obj) ? is_reachable(obj) : 1; |