[ruby-core:116803] [Ruby master Bug#19408] Object no longer frozen after moved from a ractor
From:
"luke-gru (Luke Gruber) via ruby-core" <ruby-core@...>
Date:
2024-02-16 19:12:29 UTC
List:
ruby-core #116803
Issue #19408 has been updated by luke-gru (Luke Gruber). I created a PR for this: https://github.com/ruby/ruby/pull/9996 ---------------------------------------- Bug #19408: Object no longer frozen after moved from a ractor https://bugs.ruby-lang.org/issues/19408#change-106826 * 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 ---------------------------------------- I think frozen objects should still be frozen after a move. ```ruby r = Ractor.new do obj = receive p obj.frozen? # should be true but is false p obj end obj = [Object.new].freeze r.send(obj, move: true) r.take ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- [email protected] To unsubscribe send an email to [email protected] ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/