Project

General

Profile

Actions

Bug #19367

closed

Issue with ractor local storage API

Added by luke-gru (Luke Gruber) over 2 years ago. Updated about 1 month 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) over 2 years ago

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

Updated by jhawthorn (John Hawthorn) about 1 month ago

  • Assignee changed from ko1 (Koichi Sasada) to ractor
Actions #4

Updated by luke-gru (Luke Gruber) about 1 month ago

  • 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: Atom PDF

Like0
Like0Like0Like0Like0