diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-06 20:46:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-06 20:46:37 -0700 |
commit | fae5d29a6548c4eacfc2f463d220857d1d1f05a5 (patch) | |
tree | 390e94bdc24a9dae4d5880ed25c6a4c40a5ac764 /strudel.h | |
parent | d7ff12fb7667e6b8098c85b545417dd0e8e1aa31 (diff) | |
download | txr-fae5d29a6548c4eacfc2f463d220857d1d1f05a5.tar.gz txr-fae5d29a6548c4eacfc2f463d220857d1d1f05a5.tar.bz2 txr-fae5d29a6548c4eacfc2f463d220857d1d1f05a5.zip |
lib: don't GC-protect two non-heap objects.
* lib.c (obj_init): The null string literal and "nil" do not
require gc protection; they cannot be reclaimed by the garbage
collector, which ignores them. Don't waste two slots in the
prot_stack on them. This is a remnant from ancient TXR;
these variables were protected already in Version 11 from
September 2009. At that time, there were no built-in string
literal objects; these two objects were heap-allocated.
Diffstat (limited to 'strudel.h')
0 files changed, 0 insertions, 0 deletions