Skip to content

Add GCHeapMallocator - #11084

Merged
thewilsonator merged 2 commits into
dlang:masterfrom
atilaneves:gc-heap-mallocator
Aug 19, 2026
Merged

Add GCHeapMallocator#11084
thewilsonator merged 2 commits into
dlang:masterfrom
atilaneves:gc-heap-mallocator

Conversation

@atilaneves

@atilaneves atilaneves commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Adds GCHeapMallocator, an explicitly managed allocator backed by the GC heap. It preserves the current GCAllocator manual allocation, reallocation, and deallocation behavior under a distinct name, preparing for a later change that makes GCAllocator automatically reclaimed only.

Also adds focused allocator tests and documents the new type in the building-block catalogue.

Tests:

  • make std/experimental/allocator/gc_allocator.test
  • make std/experimental/allocator/building_blocks.test
  • make std/experimental/allocator/gc_allocator.publictests
  • make unittest

@thewilsonator thewilsonator left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs an issue fix, or changelog entry. Otherwise looks good.

@0xEAB 0xEAB added the Review:Needs Changelog A changelog entry needs to be added to /changelog label Aug 18, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@thewilsonator
thewilsonator merged commit 3d56c74 into dlang:master Aug 19, 2026
7 of 10 checks passed
@0xEAB 0xEAB removed the Review:Needs Changelog A changelog entry needs to be added to /changelog label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants