Repository navigation
#2977, #3052 (D195), #2636, #2978: concurrency evidence by reach, @[suspends], CK_ZEROED, a pin - #3064
Merged
Conversation
…uspends], CK_ZEROED, a pin #2977: concurrency evidence is kept with the function it was found in and counts only where the program reaches it: every resolved call (note_call_resolution) and function value is an edge; the roots are top level, main, entry/test/bench/panic handlers, @[c_export] and trait impl methods. A library body nothing calls no longer makes the program concurrent. #3052 (D195, delegated): a method's may-suspend fact is its declaration's — `@[suspends]` (FnFlags.SUSPENDS, the std lock/wait methods in lib/std/sync.w) or the compiler's own declaration of a builtin (Sender.send, Receiver.recv, Task.join_cleanup) — and the hand list in method_may_suspend_current_fiber is gone; §14.3, changelog v7.40. #2636: `T.zeroed()` lowers to its own constant (CK_ZEROED), not the reset-on-move blank, so the use-after-kill validator and the drop-state tracker read it as a value; `audit:all` on hello world is clean under a :dev stage1. #2978: already fixed on main; pinned.
…inventory-check reads
ehartford
marked this pull request as ready for review
November 7, 2026 10:25
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four compiler defects from the weekend list, each located to its line and pinned.
.awaitin an unused std body race-checks every importerrecord_global_concurrency_evidenceset one program-wide flag from wherever it was called: the "async function call" insidepause's body (SemaCheck.w, the fourtask_fnssites) counted though nothing callspause.note_call_resolution, the one door intocomp_resolved) and every function taken as a value is an edge;resolve_global_race_concurrencywalks the edges from the roots (top level, the program's own modules, trait impl methods) once all bodies are checked, and the proof fails only on evidence the program reaches. The first counted site labels the E0921.behav_2977_unused_async_import_keeps_single_thread_proof.wwithlib/lazy_async_sleeper.wmethod_may_suspend_current_fiberis a hand list of std names@[suspends]on the declaration (FnFlags.SUSPENDS,suspending_fns), written on the eleven std methods inlib/std/sync.w; the compiler-declared builtins (Sender.send,Receiver.recv,Task.join_cleanup) carry the fact whereSema.winterns their names (builtin_suspending_methods). §14.3 says so; changelog v7.40. The flag took the last free bit, soFN_META_REQUIRED_UNITmoves to 131072.err_3052_suspends_attribute_in_no_suspend.w(a program's own@[suspends]method insideno_suspendis E0702)audit:allfails on hello world under a:devstage1T.zeroed()lowered toconst zst(T), the same rvalue as the reset-on-move blank, sovalidate_use_after_killreadlet it = T.zeroed(); return itin the in-unit stc corpus as a read after a kill, and the drop-state tracker read the value asReset.ConstKind.CK_ZEROED: the all-zero value, materialized as the blank is (both backends), never read as one.behav_2636_zeroed_value_read_back.w;with-stage1 analyze main.w audit:allis clean[2]under the installed compiler).behav_2978_script_map_comprehension.wBoy-scouting in the functions touched (Eric, 2026-11-07): lists are
[], loops iterate the list, no inferable annotations.