Project

General

Profile

Actions

Bug #19365

closed

Ractors can access non-shareable values through enumerators

Bug #19365: Ractors can access non-shareable values through enumerators

Added by luke-gru (Luke Gruber) over 2 years ago. Updated over 1 year ago.


Description

I don't think enumerators should be able to be passed to Ractor.new

obj = Object.new # unshareable value
p obj
Ractor.new([obj].each) {|f| p f.first }.take

Updated by hsbt (Hiroshi SHIBATA) over 2 years ago Actions #1 [ruby-core:111977]

  • Status changed from Open to Assigned
  • Assignee set to ko1 (Koichi Sasada)

Updated by luke-gru (Luke Gruber) over 2 years ago Actions #2 [ruby-core:111984]

Or rather, maybe they should be allowed to be passed but the deep clone logic should change? Not sure.

Updated by luke-gru (Luke Gruber) over 1 year ago Actions #3 [ruby-core:116805]

This has since been fixed, please close. Thanks.

Updated by byroot (Jean Boussier) over 1 year ago Actions #4

  • Status changed from Assigned to Closed
Actions

Also available in: PDF Atom