bdw-gc
« Back to VersTracker
Description:
Garbage collector for C and C++
Type: Formula  |  Latest Version: 8.2.10@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c c++ memory-management garbage-collection library
Install: brew install bdw-gc
About:
The Boehm-Demers-Weiser garbage collector is a conservative garbage collector for C and C++. It automatically reclaims memory that is no longer in use, acting as a replacement for malloc and free. This helps prevent memory leaks and simplifies memory management in long-running applications.
Key Features:
  • Conservative garbage collection
  • Incremental and generational collection
  • Thread-safe with stop-the-world and parallel collection
  • Displacement and pointer interposing
Use Cases:
  • Memory management in C/C++ applications
  • Porting existing code to a garbage collected environment
  • Building interpreters and virtual machines
Alternatives:
  • mimalloc – A general-purpose allocator, not a garbage collector
  • Rust ownership – Compile-time memory safety without a runtime GC
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit