Project

General

Profile

Actions

Bug #6907

closed

Another problem with super

Added by tenderlovemaking (Aaron Patterson) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-08-23 trunk 36786) [x86_64-darwin12.0.0]
Backport:
[ruby-core:47284]

Description

I found another problem with super since r36640, but I don't know how to fix it. Shugo, or ko1, can you help me?

Since r36640, I can't call super in a thread. For example:

class Hoge
def bar
"hoge"
end
end

class Foo < Hoge
def bar
Thread.new { super }.join.value
end
end

puts Foo.new.bar

I'm not sure how to take threads into account in the loop looking through the cfps. I've read vm_search_superclass, but I don't understand. I've attached a patch that fails.


Files

fail.patch (489 Bytes) fail.patch tenderlovemaking (Aaron Patterson), 08/23/2012 05:54 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0