mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
Revert "GC guard current_string in the putobject instruction"
This reverts commit 69f28ab715
.
This commit is being reverted because it does not fix the ASAN issue in
the objtostring instruction.
This commit is contained in:
parent
f6dcab5f50
commit
19c617b51d
1 changed files with 1 additions and 3 deletions
|
@ -646,9 +646,7 @@ pm_interpolated_node_compile(rb_iseq_t *iseq, const pm_node_list_t *parts, const
|
||||||
current_string = rb_enc_str_new(NULL, 0, encoding);
|
current_string = rb_enc_str_new(NULL, 0, encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
current_string = rb_fstring(current_string);
|
PUSH_INSN1(ret, current_location, putobject, rb_fstring(current_string));
|
||||||
PUSH_INSN1(ret, current_location, putobject, current_string);
|
|
||||||
RB_GC_GUARD(current_string);
|
|
||||||
PM_COMPILE_NOT_POPPED(part);
|
PM_COMPILE_NOT_POPPED(part);
|
||||||
|
|
||||||
const pm_node_location_t current_location = PM_NODE_START_LOCATION(scope_node->parser, part);
|
const pm_node_location_t current_location = PM_NODE_START_LOCATION(scope_node->parser, part);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue