Repository navigation
MiniLang 1.3.18 — concurrent GC lock profiling
MiniLang 1.3.18 — concurrent GC lock profiling
Released on 2026-12-01.
The Python reference compiler and the self-hosted compiler add an optional,
allocation-free QPC profile for the Windows x64 concurrent collector. It helps
locate heap-monitor delays when investigating frame-time spikes.
Use
Compile with --gc-concurrent --gc-lock-profile. Call gc_lock_stat(index)
after a representative run to read the QPC frequency, counts, total and maximum
durations, and timestamps for slow events. The five measured categories are
main-thread TLAB refill acquisition, main-thread direct-allocation acquisition,
collector free-range snapshot, collector mark-bitmap clear, and the complete
completion-side heap-monitor hold. The index map and 16-entry slow-event rings
are documented in LANGUAGE_REFERENCE.md.
The profile is omitted when the flag is absent. Existing concurrent-GC builds
without the new flag retain byte-identical generated executables. The feature
does not apply to Linux, MinUX or synchronous GC. QPC acquisition time includes
call overhead and possible thread descheduling, so a slow reading alone does
not prove lock contention or identify the cause of a frame spike.
Verification
- Both Windows x64 compilers built and ran the GC lock-profile fixture. It read
all five categories without usinggc_stat. - The two compilers produced byte-identical profiled fixture executables.
- Without the new flag, generated executables matched the 1.3.17 release byte
for byte on the checked concurrent-GC fixture. - Existing concurrent-GC and TLAB regressions passed with profiling enabled.
MiniQuake3 frame-time measurements have not yet been run with this profile.
Native compiler packages
and the Python reference source
are released from their corresponding version tags.