From: "byroot (Jean Boussier) via ruby-core" Date: 2026-02-07T09:45:22+00:00 Subject: [ruby-core:124709] [Ruby Bug#21868] Prism doesn't use the ruby allocator Issue #21868 has been reported by byroot (Jean Boussier). ---------------------------------------- Bug #21868: Prism doesn't use the ruby allocator https://bugs.ruby-lang.org/issues/21868 * Author: byroot (Jean Boussier) * Status: Open * Assignee: prism * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- I discovered this while working on the internal side of [Feature #21861] (https://github.com/ruby/ruby/pull/15989) Prism doesn't use `ruby_xmalloc`, but raw `malloc`. I tried to fix it myself, but couldn't figure out the solution, so I left some FIXME comments: - https://github.com/ruby/ruby/blob/d066b9e01ccb2260fac8b2580c10e73335c7c7db/prism_compile.c#L11333 - https://github.com/ruby/ruby/blob/d066b9e01ccb2260fac8b2580c10e73335c7c7db/vm_eval.c#L1779 I'd appreciate if someone from the Prism team could look at it. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/