Skip to content

merge main#39

Merged
hackerby888 merged 22 commits into
developfrom
main
Jul 1, 2026
Merged

merge main#39
hackerby888 merged 22 commits into
developfrom
main

Conversation

@hackerby888

Copy link
Copy Markdown
Collaborator

No description provided.

Franziska-Mueller and others added 22 commits June 17, 2026 12:00
…ic StreamWriterBuilder; fix async fetch lifetime captures
getPtr/getRef/operator[] hit path took the global spinlock, serializing ~20 threads behind a 33-slot scan (87% CPU in pause). Add a reader counter on the memLock byte: INDEX hit + OFFSET in-page hit take shared, miss/evict/reset/dump exclusive. pinCount/pinnedNow atomic, unpin on shared side. Fix static result-pointer race (read after unlock).
… fixes)

Wait-loop keeps both sides: my acquireMemLock() reader-drain re-acquire + main's pin-exhaustion warning/heartbeat logging.
acquireMemLock's drain only waits for shared holders (hit-path/unpin), which do no IO, so the main-thread flushAsyncFileIOBuffer there was dead weight (and fired on every thread on lite builds where isMainThread()==true). Plain spin. Claim-side pump kept (a writer ahead may async-IO under the lock).
A cached page is always <= currentPageId (currentPageId is raised before the load that puts the page in cache, and is monotonic), so the hit-path max was always a no-op. Removing it leaves currentPageId written only under the exclusive lock -> the atomic CAS helper is gone too.
add --swap-dirty-track (mprotect-armed pages + SIGSEGV mark) to skip writeback for clean-evicted pages
Re-hash only changed 8KB chunks via mprotect+SIGSEGV dirty-track; on by default on Linux (--no-k12-state-cache), with quorum-mismatch full-recompute fallback.
Obsolete now that the K12 state-digest cache makes per-tick verification cheap. Behavior-preserving (the flag was already force-disabled). Drops securityTick/forceDontUseSecurityTick, the F2 toggle, and --security-tick.
@hackerby888 hackerby888 merged commit 9704430 into develop Jul 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants