diff options
author | Peter Zhu <[email protected]> | 2025-05-26 14:11:51 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-05-26 15:04:00 -0400 |
commit | 386f87481632f1ba8de53fd94d314183034a4b06 (patch) | |
tree | b656748ac065857f6e5b5909c348d09bcac29628 /bootstraptest | |
parent | 909a0daab696c7b9dc1d23d27500e1eecd93e470 (diff) |
Don't copy FL_PROMOTED to new object in Ractor move
We should not copy the FL_PROMOTED flag when we move an object in Ractor#send(move: true)
because the newly created object may not be old.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13442
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_ractor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index e8940d98f9..cbe732e4ea 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -2427,6 +2427,7 @@ end assert_equal 'ok', %q{ r = Ractor.new do o = Ractor.receive + GC.verify_internal_consistency GC.start o end |