summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-08-25 19:40:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-08-25 19:40:46 -0700
commitce496a342712083526d424d965a6fa689b6b09cb (patch)
tree536e18bef4680100bd7fb9182939efaf490c3e88 /gc.c
parentb8109c296982b8641a47f9cb6223b6102fef4b8c (diff)
downloadtxr-ce496a342712083526d424d965a6fa689b6b09cb.tar.gz
txr-ce496a342712083526d424d965a6fa689b6b09cb.tar.bz2
txr-ce496a342712083526d424d965a6fa689b6b09cb.zip
GC correctness fixes: make sure we pin down objects for which we borrow
low level C pointers, while we execute code that can cons memory. * lib.c (list_str): Protect the str argument. (int_str): Likewise. * regex.c (search_regex): protect the haystack string, while using the h pointer to its data, since regex_run can use the derivative-based engine which conses. * stream.c (vformat_str): Protect str argument, since put_char might conceivably cons. (vformat): Protect fmtstr.
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions