Repository navigation
C: kernel/BSD/Windows vocabulary in sync_locks, io, memory_alloc, cleanup (Part of #8016) - #8139
Merged
Merged
Conversation
…anup, concurrency (Part of #8016) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
Contributor
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.
Part of #8016
Class
C rules knew only C11/POSIX names, so kernel, BSD and Windows C read as lock-free, I/O-free and allocation-free. Fixed here, all in
languages/c.py, call form only (\s*\():sync_locks(spin_lock*, raw_spin_lock*, mutex_lock*/unlock*, rcu_read_lock*, down_/up_read/up_write, sx_lock, rw_lock, EnterCriticalSection, SRW lock, Interlocked),io(readb/w/l/q +_relaxed, ioread/iowrite, inb/outb, copy_to/from_user, bus_space_),memory_alloc(kmalloc family, vmalloc, devm_kalloc, kmem_cache_),cleanup(kfree, vfree, kmem_cache_free, mutex_destroy, iounmap),concurrency(Interlocked).Facts checked
test_c_kernel_vocab_8016.pyplustest_c_strict.py: 141 passed (positive, boundary, string-literal, ReDoS, and the clk_apmu_enable shape).ruff formatclean;ruff_audit --cino new findings;audit_check.pyrun.golden-lock.sh crucible_check.py --update --yes: both fixtures report no drift (the crucible corpus has no kernel-style C), so no golden changes.Sibling gaps
WaitForSingleObjectand baredown/upleft out as too ambiguous.Remaining slices
None for C.
Lessons for agents
Fresh worktree crucible venvs are created on first bless run (slow); run it in one foreground call under 10 min.
🤖 Generated with Claude Code