Object's shape is reset after a ractor move
I believe an object should have the same shape after being moved from 1 ractor to another.
class Obj attr_accessor :a, :b, :c, :d def initialize @a = 1 @b = 2 @c = 3 end end r = Ractor.new do obj = receive #p RubyVM::Shape.of(obj) obj.d = 4 p obj.a, obj.b, obj.c, obj.d # gets wrong values due to object shape id being reset on object end obj = Obj.new #p RubyVM::Shape.of(obj) r.send(obj, move: true) r.take
Actions #1 [ruby-core:112248]
Updated by hsbt (Hiroshi SHIBATA) 4 months ago
- Status changed from Open to Assigned
- Assignee set to ko1 (Koichi Sasada)