Skip to content

MiniLang 1.3.19 — shorter concurrent GC allocation waits

Choose a tag to compare

@n1k0m0 n1k0m0 released this 01 Dec 22:10
· 1 commit to main since this release

MiniLang 1.3.19 — shorter concurrent-GC allocation waits

Released on 2026-12-01.

The Python reference compiler and the self-hosted compiler now generate a
lower-latency Windows x64 concurrent collector. An allocation-aware bitmap
tracks central free ranges. The collector copies it under the heap monitor,
captures roots, then coalesces smaller old free ranges without holding that
monitor. Blocks of at least 64 KiB remain available while coalescing runs;
completed smaller ranges are published in short batches.

This applies to programs built with --gc-concurrent on Windows x64. No new
source-language API is required. --gc-lock-profile additionally exposes
snapshot setup, protection and coalescing phase counters for diagnosis.

Measured effect

In matched 3,200-frame MiniQuake3 Q3DM4 replays with three bots, the mean
snapshot monitor hold fell from 6.737 to 0.937 ms and the maximum TLAB
acquisition wait fell from 9.173 to 4.073 ms. Both builds had 416 MiB of
committed heap at frame 3,000. Present P95 was 30.181 versus 30.536 ms;
the replay did not establish an overall frame-rate improvement. A separate
64-cycle benchmark was about 3% slower in median wall time, reflecting the
extra bitmap copy and private-list work. This release targets shorter GC
blocking, not maximum collector throughput.

The first collection may still hold the monitor for roughly 16 ms while it
seeds the index. Root capture, mark termination and other coordination still
use short cooperative pauses. This is not a pause-free collector.

Verification

  • The complete Windows concurrent-GC matrix passed with byte-identical
    output from the Python and self-hosted compilers, including normal and
    object pipelines.
  • The TLAB shared-heap test passed 400 additional runs.
  • The native bitmap boundary test and 64-cycle no-growth reuse test passed.
  • The MiniQuake3 game replay passed with unchanged committed heap.

See the measurement report
for the controls, alternate reserve sizes and detailed limitations.

Native compiler packages
and the Python reference source
are released from their corresponding version tags.