[ruby-core:111967] [Ruby master Bug#19367] Issue with ractor local storage API

Issue #19367 has been reported by luke-gru (Luke Gruber). ---------------------------------------- Bug #19367: Issue with ractor local storage API https://bugs.ruby-lang.org/issues/19367 * Author: luke-gru (Luke Gruber) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/

Issue #19367 has been updated by luke-gru (Luke Gruber). PR here: https://github.com/ruby/ruby/pull/7174 ---------------------------------------- Bug #19367: Issue with ractor local storage API https://bugs.ruby-lang.org/issues/19367#change-101399 * Author: luke-gru (Luke Gruber) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/

Issue #19367 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Assigned Assignee set to ko1 (Koichi Sasada) ---------------------------------------- Bug #19367: Issue with ractor local storage API https://bugs.ruby-lang.org/issues/19367#change-101412 * Author: luke-gru (Luke Gruber) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/
participants (2)
-
hsbt (Hiroshi SHIBATA)
-
luke-gru (Luke Gruber)