ISMM 2025
Tue 17 Jun 2025 Seoul, South Korea
co-located with PLDI 2025
Tue 17 Jun 2025 11:00 - 11:20 at Lilac - Session 2: 1040-1200 [Workloads] Chair(s): Erez Petrank

Ruby is a dynamic programming language that was first released in 1995 and remains heavily used today. Ruby underpins Ruby on Rails, one of the most widely deployed web application frameworks. The scale at which Rails is deployed has placed increasing pressure on the underlying CRuby implementation, and in particular its approach to memory management. CRuby implements a mark-sweep garbage collector which until recently was non-moving and only allocated fixed-size 40-byte objects, falling back to malloc to manage all larger objects. This paper reports on a multi-year academic-industrial collaboration to rework CRuby’s approach to memory management with the goal of introducing modularity and the ability to incorporate modern high performance garbage collection algorithms. This required identifying and addressing deeply ingrained assumptions across many aspects of the CRuby runtime. We describe the longstanding CRuby implementation and enumerate core challenges we faced and lessons they offer.

Our work has been embraced by the Ruby community, and the refactorings and new garbage collection interface we describe have been upstreamed. We look forward to this work being used to deploy a new class of garbage collectors for Ruby. We hope that this paper will provide important lessons and insights for Ruby developers, garbage collection researchers and language designers.

Tue 17 Jun

Displayed time zone: Seoul change

10:40 - 12:00
Session 2: 1040-1200 [Workloads]ISMM 2025 at Lilac
Chair(s): Erez Petrank Technion
10:40
20m
Talk
Reconsidering Garbage Collection in Julia: A Practitioner Report
ISMM 2025
Luis Eduardo de Souza Amorim Australian National University, Yi Lin Australian National University, Stephen M. Blackburn Google; Australian National University, Diogo Netto RelationalAI, Gabriel Baraldi JuliaHub, Nathan Daly RelationalAI, Tony Hosking Australian National University, Kiran Pamnany RelationalAI, Oscar Smith JuliaHub
DOI
11:00
20m
Talk
Reworking Memory Management in CRuby: A Practitioner Report
ISMM 2025
Kunshan Wang Australian National University, Stephen M. Blackburn Google; Australian National University, Peter Zhu Shopify, Matthew Valentine-House Shopify
DOI
11:20
20m
Talk
Lifetime Dispersion and Generational GC: An Intellectual AbstractRemote
ISMM 2025
Stephen Dolan Jane Street
DOI
11:40
20m
Talk
SecureMind: A Framework for Benchmarking Large Language Models in Memory Bug Detection and Repair
ISMM 2025
Huanting Wang University of Leeds, Dejice Jacob University of Glasgow, David Kelly University of Glasgow, Yehia Elkhatib University of Glasgow, Jeremy Singer University of Glasgow, Zheng Wang University of Leeds
DOI Pre-print