# Boehm GC

5 Hacker News commenters recommended Boehm GC and 5 criticized it, November 2025 to November 2026. It was recommended in 4 of 13 months.

**Verdict:** Free library that adds automatic memory management to existing C and C++ programs with minimal changes. Critics say its conservative scanning is slow, especially with large heaps.

## Why people recommend it

- Drop-in automatic memory management for C/C++ (2 comments): "you can just replace your #include. Cutting-edge automatic memory management forever." ([source](https://news.ycombinator.com/item?id=46997142)) "makes any random C/C++ program not only still work but also run faster" ([source](https://news.ycombinator.com/item?id=45794456))
- Long-term use by experienced developers (2 comments): "I write a lot of my C/C++ code using Boehm GC, have my own libraries designed knowing GC is there" ([source](https://news.ycombinator.com/item?id=45843181)) "I've been using Boehm GC with my C/C++ programs for decades" ([source](https://news.ycombinator.com/item?id=47812452))

## What people warn about

- Slow because it scans too much memory (2 comments): "Boehm is a conservative GC so when it triggers it needs to scan a lot more memory for pointers than .NET's GC" ([source](https://news.ycombinator.com/item?id=46423099)) "which is notorious to be slow, since it is a conservative GC" ([source](https://news.ycombinator.com/item?id=47021531))
- Production problems with large heaps (2 comments): "Its biggest downside was the use of Boehm GC that had some issues with large heaps." ([source](https://news.ycombinator.com/item?id=49649087)) "using Boehm in production is the worst of all worlds" ([source](https://news.ycombinator.com/item?id=48693149))

## Alternatives hackers recommend

- [ZGC garbage collector](https://hackerapproved.com/p/zgc.md): 17 recommend
- [G1 garbage collector](https://hackerapproved.com/p/g1-garbage-collector.md): 6 recommend
- [Parallel GC (OpenJDK)](https://hackerapproved.com/p/parallel-gc.md): 5 recommend

## Cite as

Hacker Approved, "Boehm GC", https://hackerapproved.com/p/boehm-gc/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
