From 241dced625f9ba8a4071954579778a0940e75179 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 12 Dec 2018 05:46:13 +0000 Subject: Disable tailcall optimization [Bug #15303] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/rubyvm/lib/forwardable/impl.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ext') 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 -- cgit v1.2.3