diff options
author | Peter Zhu <[email protected]> | 2024-09-23 11:45:21 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-09-23 11:45:21 -0400 |
commit | 19c617b51de7f8fc73baa1c404bed3b4e6dbbf69 (patch) | |
tree | 5ebb53638ebeb07368048a3a63ab706c88aa3f4a /prism_compile.c | |
parent | f6dcab5f50bc3ab00b17d3ce84bd906b176baa7a (diff) |
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.
Diffstat (limited to 'prism_compile.c')
-rw-r--r-- | prism_compile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/prism_compile.c b/prism_compile.c index e88b24e5cf..1fbae42cf8 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -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); |