Project

General

Profile

Actions

Bug #20209

closed

YJIT can leak memory by retaining objects with singleton class

Added by alanwu (Alan Wu) 12 months ago. Updated 10 months ago.

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

Description

We've received reports of YJIT causing memory leaks in production Rails apps by keeping objects that have singleton classes alive. The symptom is similar to #19436. We have found a workaround with https://github.com/ruby/ruby/pull/9693 and would like to have it in the next 3.3 point release.

Updated by alanwu (Alan Wu) 11 months ago

Note, there was an additional fix to stabilize CI after this. I opened a GitHub PR with everything bundled together: https://github.com/ruby/ruby/pull/9841

Updated by naruse (Yui NARUSE) 10 months ago

  • Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE

ruby_3_3 cdcabd8a44ee2f4a2b549a3460a5c77c2dffca36 merged revision(s) 2cc7a56e,b0711b1,db5d9429.

Actions

Also available in: Atom PDF

Like0
Like0Like0