038b158fa3 (master): [ruby/mmtk] Implement fast path for bump pointer allocator

0 views
Skip to first unread message

Peter Zhu

unread,
Dec 20, 2025, 9:55:46 PM (4 days ago) Dec 20
to ruby...@g.ruby-lang.org
Peter Zhu 2025-12-20 21:08:01 +0000 (Sat, 20 Dec 2025)

New Revision: 038b158fa3

https://github.com/ruby/ruby/commit/038b158fa3

Log:
[ruby/mmtk] Implement fast path for bump pointer allocator

Adding a fast path for bump pointer allocator can improve allocation
performance.

For the following microbenchmark with MMTK_HEAP_MIN=100MiB:

10_000_000.times { String.new }

Before:

810.7 ms ± 8.3 ms [User: 790.9 ms, System: 40.3 ms]

After:

777.9 ms ± 10.4 ms [User: 759.0 ms, System: 37.9 ms]

https://github.com/ruby/mmtk/commit/0ff5c9f579

Modified files:
gc/mmtk/cbindgen.toml
gc/mmtk/mmtk.c
gc/mmtk/mmtk.h
gc/mmtk/src/api.rs
Reply all
Reply to author
Forward
0 new messages