Skip to content

MiniLang 1.3.16 — shorter concurrent GC pauses

Choose a tag to compare

@n1k0m0 n1k0m0 released this 01 Dec 00:21
· 8 commits to main since this release

MiniLang 1.3.16 — shorter concurrent GC pauses

Released on 2026-12-01.

This release improves the optional Windows x64 concurrent collector in both
compilers and speeds up large forward-overlapping native copies. Programs keep
the same source-level behavior and can continue using --gc-concurrent and the
optional gc_frame_step API introduced in 1.3.15.

Collector changes

The collector prepares its immutable free-range snapshot and clears the used
prefix of its mark bitmap before requesting the initial global root handshake.
Managed threads can keep allocating from private TLAB ranges during this work.
The final free-list publication uses the heap monitor without another global
world-stop handshake. Central allocations can wait for that monitor.

The mark loop checks whether an object was already marked before reading its
header again. Root capture, mark termination and weak-context cleanup still
require cooperative global pauses. This is not a pause-free collector.

In targeted Windows x64 tests with 21 alternating runs, the median cumulative
pause in the next cycle fell from 0.6571 to 0.0048 ms with 100,000 separated
free ranges, and from 0.0416 to 0.0040 ms with a retained 128 MiB byte buffer.
These are pause-counter measurements for those fixtures, not whole-program
throughput or a worst-case latency guarantee.

Native copy

Large forward-overlapping copyBytes and copyArray operations use REP MOVSQ
for the qword portion. Short ranges retain the existing scalar path, and tagged
array cells remain qword stores. The native semantics regression checks a
reference copy across the new threshold followed by collection.

Verification

The Windows concurrent-GC matrix checks runtime results, frame pacing,
allocation pressure, emergency collection and byte-for-byte output parity
between the Python and native compilers and the native object pipeline. The
targeted Python GC regression set contains 18 passing checks. See the
release verification report
and the benchmark descriptions for reproducible scope.

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