diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 05:46:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 05:46:13 +0000 |
commit | 241dced625f9ba8a4071954579778a0940e75179 (patch) | |
tree | 3c9d22ed57adc47ccb2fbb414572a13a85007bfd /ext/rubyvm/lib | |
parent | c33e716d6d2069e78f0b96793547355b0679a2d7 (diff) | |
download | ruby-241dced625f9ba8a4071954579778a0940e75179.tar.gz |
Disable tailcall optimization [Bug #15303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/rubyvm/lib')
-rw-r--r-- | ext/rubyvm/lib/forwardable/impl.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/rubyvm/lib/forwardable/impl.rb b/ext/rubyvm/lib/forwardable/impl.rb index e9ada26e74..e9bde2f299 100644 --- a/ext/rubyvm/lib/forwardable/impl.rb +++ b/ext/rubyvm/lib/forwardable/impl.rb @@ -1,7 +1,5 @@ # :stopdoc: module Forwardable - FILTER_EXCEPTION = "" - def self._valid_method?(method) iseq = RubyVM::InstructionSequence.compile("().#{method}", nil, nil, 0, false) rescue SyntaxError @@ -12,8 +10,7 @@ module Forwardable def self._compile_method(src, file, line) RubyVM::InstructionSequence.compile(src, file, file, line, - trace_instruction: false, - tailcall_optimization: true) + trace_instruction: false) .eval end end |