P2: later
An appendix to the milestone.
P2: later
-
The dev-dependency on
talcleaves nife's patch behind. Finding: nife builds the crate's host test againstvendor/talc, 5.1.1 plus an upstream fit-check fix whose pull request is still open; the crate repository will build crates.io's 5.1.1 without it.vendor/README.mdrecords that Miri reports undefined behavior through this crate's host test on the unpatched crate. This review ran that test under Miri against unpatched 5.1.1 with default flags, strict provenance and three seeds and saw nothing, so the claim did not reproduce here; the template's weeklymirijob is the gate that settles it. Change: nothing before the move. If the weekly job turns red on talc, the host test pins a talc that carries the fix, or swaps the backing heap for a simple arena the test owns. Door: two-way. Effort: S. -
The crate has no harness and the
proofsworkflow may want one. Finding: the template'sproofs.ymlrunskaniandfalsifyon every pull request. Whether a crate with zero harnesses passes both jobs is not verified here; one sibling in the review index has no harness and no repository yet. Change: item 8 removes the question. If item 8 waits, the move lane confirms the job's behavior on an empty harness set before the first pull request. Door: two-way. Effort: S. -
Cacheimplements neitherDebugnor aDropthat notices a leak. Finding: a public type with noDebugcannot sit in a user's#[derive(Debug)]struct. ACachedropped with blocks in it leaks them silently; aDropwithdebug_assert!(self.cached_bytes() == 0)costs nothing in release and catches the owner that forgotdrain. Change: aDebugthat prints the counts per class (not the pointers), and theDropassertion, with a test. Adding either is compatible later; theDropchanges nothing a correct owner sees. Door: two-way. Effort: S. -
A stranger with another heap has no way to tune the constants. Finding: depth 16, grid 16, ceiling 256 are the crate's, and its
BUGSsays a lane chose them without measuring. glibc, jemalloc and TCMalloc each expose depth and ceiling as tunables. Rust letsCachetakeconstparameters with defaults later without breaking a user who writesCache, so this can wait for a second consumer. Change: none now; aBUGSline that says the parameters do not move and why. Door: two-way while users write the defaults. Effort: S. -
nife's notes record the cross-owner free pattern; the crate does not. Finding: a block freed by a different owner than allocated it lands in the freeing owner's cache, bounded by the depth and spilled at the bound.
notes/std/allocation.mdrecords it underBUGS; the crate'sBUGSdoes not, and the crate is the place a stranger reads. Change: oneBUGSline in the crate, in owner-agnostic words. Door: two-way. Effort: S. -
The abbreviation report flags one test name. Finding:
an_uncached_request_reaches_the_heap_as_asked_unless_empty(src/lib.rsline 274):uncachedis not in the template's word lists. The step is report only. Change:a_request_without_a_class_reaches_the_heap_as_asked_unless_empty, or anaccepted-wordsentry foruncachedwith its reason. Door: two-way. Effort: S.