Revert "GC guard current_string in the putobject instruction"

This reverts commit 69f28ab715a02692fb2a9128bed46044963cbb50.

This commit is being reverted because it does not fix the ASAN issue in
the objtostring instruction.
This commit is contained in:
Peter Zhu 2024-09-23 11:45:21 -04:00
parent f6dcab5f50
commit 19c617b51d

View File

@ -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_fstring(current_string);
PUSH_INSN1(ret, current_location, putobject, current_string);
RB_GC_GUARD(current_string);
PUSH_INSN1(ret, current_location, putobject, rb_fstring(current_string));
PM_COMPILE_NOT_POPPED(part);
const pm_node_location_t current_location = PM_NODE_START_LOCATION(scope_node->parser, part);