Actions
Backport #10139
closedBackport r47190 (use RBASIC_SET_CLASS_RAW in setup_fake_str())
Status:
Closed
Assignee:
Description
From commit message
fake strings should not set class by
RBASIC_SET_CLASS() because it insert write barriers to fake
(non-RVALUE) structure.
It can cause unexpected behaviour.
Ruby 2.1 also have a same problem (setup_fake_str() in parse.y).
Updated by nagachika (Tomoyuki Chikanaga) over 9 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset r47480.
merge revision(s) r47190: [Backport #10139]
* string.c (setup_fake_str): fake strings should not set class by
RBASIC_SET_CLASS() because it insert write barriers to fake
(non-RVALUE) structure.
It can cause unexpected behaviour.
Ruby 2.1 also have a same problem (setup_fake_str() in parse.y).
* symbol.c (setup_fake_str): ditto.
Actions
Like0
Like0