BDWGC C bindings
Formatted output for GC logging
Checks if alignment is valid: a power of 2 and at least pointer size.
Allocator for BDWGC-managed memory, implementing IAllocator. Thread-safe and compatible with -betterC. Requires thread registration for multi-threaded use when GCThreads is enabled.
Manage BDWGC thread registration. Use ThreadGuard.create() to instantiate and register the current thread. Unregisters the thread on destruction. No-op if GCThreads is disabled.
D interface to the Boehm-Demers-Weiser Garbage Collector (BDWGC). Provides a structured allocator API for GC-managed memory with thread support.
Note: All allocations, including aligned ones, are GC-managed via BDWGC. Thread registration is required for multi-threaded applications when GCThreads is enabled.