Loading…
Topic
Garbage Collection
2 posts about Garbage Collection. Every summary links to the original.
- 2 posts
- 2 companies
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Where Did the Saved Bytes Go? Compact Object Headers in IntelliJ IDEA
IntelliJ IDEA evaluated compact object headers, enabled by default in Java 27 through Project Lilliput and JEP 534, on a large JVM application. Tests compared headers on and off for the Welcome screen, Spring Petclinic at about 3,370 lines, and the IntelliJ IDEA monorepo at about 26.5 million lines. Resident set size showed no consistent reduction at identical -Xmx limits, because RSS includes heap headroom, metadata, JIT code, stacks, native buffers, and shared libraries. Modeled footprints for identical captured heaps fell about 6.3% for Welcome and Petclinic and 8.2% to 8.4% for the monorepo, depending on object shapes, field offsets, and eight-byte padding. The lowest tested heap fell from 400 to 376 MiB for Petclinic and from 1,888 to 1,568 MiB for the monorepo, while operation times and GC metrics trended better; authors advise measuring RSS, heap, and speed separately.
Incremental Garbage Collection in Ruby 2.2
Ruby 2.2 introduces RincGC, an incremental garbage collector intended to reduce the long pause times that Ruby 2.1’s generational collector could produce during major GC. The approach splits marking into fine-grained steps interleaved with Ruby execution, while lazy sweeping remains incremental; because CRuby lacks sufficient write barriers, unprotected objects are rescanned before white objects are reclaimed. The article explains the white, grey, and black object model, the write-barrier safety problem, and uses GC::Tracer events with a Rails benchmark simulating 30,000 requests to measure pauses. In the reported measurement, generational GC produced seven large pauses with a maximum of about 15 ms, while incremental GC reduced the maximum to around 2 ms, without reducing total GC time or improving throughput.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.