From 4c6dd77df5f441ab49f610d7cb6648950f23dad2 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 30 Nov 2015 04:44:41 +0000 Subject: [PATCH] vm_eval.c: make dsym * vm_eval.c (rb_throw, rb_catch): get rid of making static IDs, use dynamic symbos instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_eval.c b/vm_eval.c index d32cf1ba55..78d0ae3447 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1904,7 +1904,7 @@ rb_throw_obj(VALUE tag, VALUE value) void rb_throw(const char *tag, VALUE val) { - rb_throw_obj(ID2SYM(rb_intern(tag)), val); + rb_throw_obj(rb_sym_intern_ascii_cstr(tag), val); } static VALUE @@ -1981,7 +1981,7 @@ rb_f_catch(int argc, VALUE *argv) VALUE rb_catch(const char *tag, VALUE (*func)(), VALUE data) { - VALUE vtag = tag ? ID2SYM(rb_intern(tag)) : rb_obj_alloc(rb_cObject); + VALUE vtag = tag ? rb_sym_intern_ascii_cstr(tag) : rb_obj_alloc(rb_cObject); return rb_catch_obj(vtag, func, data); }