mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
merges r30922 and r30924 from trunk into ruby_1_9_2.
-- * prevent temporary objects from GC, and should not use RSTRING_PTR() for function calls since it evaluates the argument a couple of times. -- * thread.c (exec_recursive): prevent temporary objects from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0a2b08d02
commit
1c0add85ca
9 changed files with 26 additions and 14 deletions
|
@ -1014,7 +1014,8 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char
|
|||
th->base_block = 0;
|
||||
|
||||
if (0) { /* for debug */
|
||||
printf("%s\n", RSTRING_PTR(rb_iseq_disasm(iseqval)));
|
||||
VALUE disasm = rb_iseq_disasm(iseqval);
|
||||
printf("%s\n", StringValuePtr(disasm));
|
||||
}
|
||||
|
||||
/* save new env */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue