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 | deac1366b000c4ae7cb8b5f3003dcdef30708408 (patch) | |
tree | 8bd1d5a3fee7f9940323a40d93ec7f437390a1d1 | |
parent | b5a859dd2188e51abdbbbcb68af1a299605f92dd (diff) | |
download | txr-deac1366b000c4ae7cb8b5f3003dcdef30708408.tar.gz txr-deac1366b000c4ae7cb8b5f3003dcdef30708408.tar.bz2 txr-deac1366b000c4ae7cb8b5f3003dcdef30708408.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.
-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 |