From 6b9c1f1f30b92211f7d4e6f3edc56a6cd7f0bd9c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 17 Apr 2021 07:39:51 -0700 Subject: 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. --- gc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gc.h') diff --git a/gc.h b/gc.h index 8f7b44ae..9b41492c 100644 --- a/gc.h +++ b/gc.h @@ -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 -- cgit v1.2.3