From ec6bd7cded43bfd3ba1491c8ec08eb1975334e4e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 May 2011 19:39:59 +0000 Subject: Leave symbols alone in GC (currently causes memory errors) git-svn-id: http://svn.drobilla.net/resp/trunk@426 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/gc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gc.cpp b/src/gc.cpp index 6655e40..59036df 100644 --- a/src/gc.cpp +++ b/src/gc.cpp @@ -57,10 +57,12 @@ GC::alloc(size_t size) inline void mark(const Object* obj) { + if (obj->tag() == T_SYMBOL) + return; + if (!obj || obj->marked()) return; - obj->mark(true); if (obj->tag() != T_UNKNOWN) { const ATuple* tup = ((const AST*)obj)->to_tuple(); if (tup) -- cgit v1.2.1