Repository navigation
[NO MERGE] Redesign NoLock to LocalRwLock - #577
Open
Natural-selection1 wants to merge 10 commits into
Open
Natural-selection1 wants to merge 10 commits into
Natural-selection1 wants to merge 10 commits into
Conversation
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
2 times, most recently
from
November 18, 2026 08:12
a1abb0d to
2d3c9dd
Compare
Natural-selection1
marked this pull request as draft
November 18, 2026 08:13
Natural-selection1
marked this pull request as ready for review
November 18, 2026 08:13
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
5 times, most recently
from
November 19, 2026 08:06
322329b to
8fac67d
Compare
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
3 times, most recently
from
November 19, 2026 09:10
388b90d to
5ad3a34
Compare
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
from
November 20, 2026 01:34
7d1a3ee to
943f496
Compare
Introduce NotThreadSafe and carry it through read, write and upgradable guards, including conversions. Express when a shared reference to each guard may cross threads.
Track outstanding reads and exclusive writes in LocalRwLock. Its callers supply the execution-context exclusion needed to update the borrow state.
Count nested IRQ leases, restore the saved mask on the last release and track live preemption leases. Borrow DisableInterruptGuard as proof of masking and remove PlainDisableInterruptGuard. Keep guards that release IRQ nesting, per-CPU access or the flash mutex in their acquiring context.
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
3 times, most recently
from
November 20, 2026 07:37
d8aa994 to
db0bc62
Compare
Return an owned IRQ guard from IRQ-save writes and tie borrowed acquisitions to the caller's IRQ mask. Keep the preemption lease in the ordinary write guard. Tighten shared lock and AArch64 handler bounds and cover conflicts, guard transfer and IRQ restoration in the lock tests.
…ints Check switching and interrupt restoration at architecture boundaries. Keep the RISC-V syscall guard on its acquiring thread and make the raw IRQ enable and restore calls explicit.
Pass the IRQ proof through thread selection and timer operations. Honor live guards at context switches and require an owned IRQ guard for suspension with a queue lock. Release the payload borrow before restoring the saved mask.
Carry IRQ protection from queue acquisition through suspension and wakeup. Update semaphore and message queue operations, atomic waits and lock accessors to use the final guard types.
…uler path RV32 release builds can lose the empty-queue check after an inlined pop_front, leaving the priority active after its last thread is removed. Keep the function out of line pending the intrusive list aliasing work tracked in vivoblueos#559.
Add thread-metric probes for local lock behavior and the contended semaphore handoff.
Install the handlers used by the CMSIS validation suite and make validation failures visible to the test runner.
Natural-selection1
force-pushed
the
codex/nolock-irq-context
branch
from
November 20, 2026 08:11
db0bc62 to
f6c311e
Compare
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.
Don't merge it right now!
The thread_metric benchmark is now as follows.
shift=4baselineshift=4finalshift=5baselineshift=5final