summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-16 06:59:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-16 06:59:13 -0700
commita6c50d7ce44dd36c650a085f8bca4fe2e9074001 (patch)
treeeb334c2e366659d8d7f48543e8b4ceac040a682d /tests
parent73cc669cc401be80d323864b7591a79cda8f5ff7 (diff)
downloadtxr-a6c50d7ce44dd36c650a085f8bca4fe2e9074001.tar.gz
txr-a6c50d7ce44dd36c650a085f8bca4fe2e9074001.tar.bz2
txr-a6c50d7ce44dd36c650a085f8bca4fe2e9074001.zip
gc bugfix: maintain free_tail properly.
* gc.c (more): Only set the free_tail if the new memory is being added to an empty free_list. Otherwise free_tail is valid. (make_obj): If we empty the free_list, then reset the free_tail pointer, so it doesn't continue pointing into the object we are returning. (sweep): Remove defensive code which tries to reset the free_tail in the empty free_list case, but assumes that free_tail is correct in the non-empty case.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions