Project

General

Profile

Actions

Bug #20271

open

Issue with moving embedded string across ractors

Added by luke-gru (Luke Gruber) 2 months ago. Updated 2 months ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:116799]

Description

When embedded strings are moved, not all the embedded bytes are copied over to the new embedded string. This shows itself when
an embedded string has more than 16 characters.

For example:

r = Ractor.new {
  foo = receive
  puts foo
  foo
}
obj = "12345678" * 3
puts obj
r.send(obj, move: true)
r.take
123456781234567812345678
1234567812345678
Actions

Also available in: Atom PDF

Like0
Like1Like0