summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 15:05:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 15:05:27 +0000
commitccf5372b252a229ddb6693db132edc013419ccdc (patch)
tree2d0619ed60d5749e05e9479c5aa1cab82959266e /gc.c
parent2156870525be05f0bd769af141c3f6cff9fff8c4 (diff)
* object.c (Init_Object): move symbol related code to string.c
* string.c (Init_String): Symbol as subclass of String. * parse.y (rb_intern2): handle symbol as strings. * string.c (str_new): substring of symbols are mere strings, not symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 0ae9bb62a0..8681175191 100644
--- a/gc.c
+++ b/gc.c
@@ -1381,6 +1381,7 @@ garbage_collect(void)
(VALUE*)((char*)rb_gc_stack_start + 2));
#endif
rb_gc_mark_threads();
+ rb_gc_mark_symbols();
/* mark protected global variables */
for (list = global_List; list; list = list->next) {