diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-17 07:39:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-17 07:39:51 -0700 |
commit | 6b9c1f1f30b92211f7d4e6f3edc56a6cd7f0bd9c (patch) | |
tree | 8bd1d5a3fee7f9940323a40d93ec7f437390a1d1 /gc.h | |
parent | cde48c8282110817bafba59869c434444a3c0b6d (diff) | |
download | txr-6b9c1f1f30b92211f7d4e6f3edc56a6cd7f0bd9c.tar.gz txr-6b9c1f1f30b92211f7d4e6f3edc56a6cd7f0bd9c.tar.bz2 txr-6b9c1f1f30b92211f7d4e6f3edc56a6cd7f0bd9c.zip |
gc: disable z() macro.
* gc.h (z): turn off. This is not achieving its purpose of
stopping spurious retention of objects, and adds a fraction
of a percent of execution overhead.
Diffstat (limited to 'gc.h')
-rw-r--r-- | gc.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -68,4 +68,9 @@ extern val break_obj; #define FREE 0x200 INLINE val zap(volatile val *loc) { val ret = *loc; *loc = nil; return ret; } + +#if CONFIG_ZAP_DEAD_LOCATIONS #define z(lvalue) zap(&lvalue) +#else +#define z(lvalue) (lvalue) +#endif |