merge main#39
Merged
Merged
Conversation
Release v1.296.0
…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).
fix deadlock bugs
… 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
…ts; drain in-flight IO before snapshot
optimize swapvm lock
Release v1.297.0
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.
Feat/k12 state digest cache
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.
No description provided.