зеркало из https://github.com/github/ruby.git
* eval.c (rb_eval): care that another thread replace NODE_DREGX_ONCE
to NODE_LIT. [ruby-dev:22920] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b2a4b4845c
Коммит
7430c46af6
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Feb 17 01:35:28 2004 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
* eval.c (rb_eval): care that another thread replace NODE_DREGX_ONCE
|
||||||
|
to NODE_LIT. [ruby-dev:22920]
|
||||||
|
|
||||||
Tue Feb 17 01:20:57 2004 Minero Aoki <aamine@loveruby.net>
|
Tue Feb 17 01:20:57 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/fileutils.rb: new module FileUtils::DryRun.
|
* lib/fileutils.rb: new module FileUtils::DryRun.
|
||||||
|
|
3
eval.c
3
eval.c
|
@ -3643,6 +3643,9 @@ rb_eval(self, n)
|
||||||
nd_set_type(node, NODE_LIT);
|
nd_set_type(node, NODE_LIT);
|
||||||
node->nd_lit = result;
|
node->nd_lit = result;
|
||||||
break;
|
break;
|
||||||
|
case NODE_LIT:
|
||||||
|
/* other thread may replace NODE_DREGX_ONCE to NODE_LIT */
|
||||||
|
goto again;
|
||||||
case NODE_DXSTR:
|
case NODE_DXSTR:
|
||||||
result = rb_funcall(self, '`', 1, str);
|
result = rb_funcall(self, '`', 1, str);
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче