Project

General

Profile

Actions

Bug #19444

closed

YJIT String#+@ miscompilations

Added by alanwu (Alan Wu) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:112458]

Description

We noticed two issues with YJIT's String#+@ (String unary plus) implementation.

  1. It has issues with GC allocation tracing. We saw it SEGV with the Stackprof gem
  2. It has a type confusion issue from assuming that the method always return an ::String instance. It can return subclass instances

The YJIT override does not exist on the 3.1 series.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0