Project

General

Profile

Actions

Bug #19367

closed

Issue with ractor local storage API

Bug #19367: Issue with ractor local storage API

Added by luke-gru (Luke Gruber) almost 3 years ago. Updated 5 months ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:111967]

Description

In a non-main ractor, you can do Ractor.main[:key] = 'val', but it only affects storage for Ractor.current, not Ractor.main (which is good!).
I think it should throw a RuntimeError if trying to get/set ractor-local storage for non-current ractor.

Patch coming.

Updated by hsbt (Hiroshi SHIBATA) almost 3 years ago Actions #2 [ruby-core:111975]

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

Updated by jhawthorn (John Hawthorn) 6 months ago Actions #3

  • Assignee changed from ko1 (Koichi Sasada) to ractor

Updated by luke-gru (Luke Gruber) 5 months ago Actions #4

  • Status changed from Assigned to Closed

Applied in changeset git|c941fced211c7472d6a61e7469b70282ac506ea6.


Throw RuntimeError if getting/setting ractor local storage for non-main ractor

[Bug #19367]

Actions

Also available in: PDF Atom