Repository navigation
Reject oversized memory entries before capacity eviction - #67
Merged
Merged
Conversation
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.
Change
Reject memory-cache entries larger than the entire byte budget before cloning
or insertion. The previous path evicted unrelated residents and finally the
unretainable incoming object.
The three-line production guard preserves unrelated values and LRU order while
still removing an old same-key value. Exact-fit admission, ordinary capacity
eviction, application results, persistent operations, public interfaces,
policies, default limits and stored formats are unchanged.
Evidence
Qualification report, exact tables, graph and reproduction
source and collector before the single complete, detached-checkout capture.
and all 384 pair gates pass. The full 768 rows and source inventory are
retained with derived CSV and SVG.
eliminating all 336 oversized-input clones. Logical clone-input bytes
decrease from 584,880 to 73,272. Five ordinary-work controls preserve exact
operations, metrics and copy work.
cases. Exact historical-cache focused qualification: six passed and 15
expected failures.
IndexedDB hydrations and 12 connection-factory cache-wiring cases.
verification pass locally. Existing repository CI remains the merge gate.
Assessment and limits
The scoped assessment is 94/100 against the predeclared 85/100 threshold,
subject to passing CI and human review.
Memory sets add one comparison and branch after the existing size estimate.
Oversized objects still incur normal serialization, persistence and public
output-copy costs where applicable. Rejected objects no longer inflate
eviction counts; tiered write attempts retain their existing accounting.
These are local retention and logical-work results, not measured heap,
production hit rates, latency or provider savings. The change does not bound
auxiliary namespace-key bookkeeping. Factory cases configure both layouts
and policies but do not measure end-to-end queries. Windows WebKit does not
qualify Safari on Apple hardware.