ruby-changes:25633
From: nobu <ko1@a...>
Date: Sat, 17 Nov 2012 02:02:46 +0900 (JST)
Subject: [ruby-changes:25633] nobu:r37690 (trunk): vm.c: gc guard
nobu 2012-11-17 02:02:37 +0900 (Sat, 17 Nov 2012) New Revision: 37690 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37690 Log: vm.c: gc guard * vm.c (vm_collect_usage_operand): prevent from GC. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 37689) +++ vm.c (revision 37690) @@ -2515,6 +2515,7 @@ valstr = insn_operand_intern(GET_THREAD()->cfp->iseq, insn, n, op, 0, 0, 0, 0); RUBY_DTRACE_INSN_OPERAND(RSTRING_PTR(valstr), rb_insns_name(insn)); + RB_GC_GUARD(valstr); } if (ruby_vm_collect_usage_func_operand) (*ruby_vm_collect_usage_func_operand)(insn, n, op); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/