Skip to content

SHM-jemalloc borrow_object(): odd-alignment acceptance. / Impl notes: Unit-test coverage of SHM-classic and SHM-jemalloc borrow_object() (et al) hardening; and basic construct()/lend_object()/borrow_object() cycle end-to-end. / Unit-test bug fix (existing test failed to properly cleanup => caused trouble in subsequent new tests).#67

Merged
ygoldfeld merged 6 commits intomainfrom
shm-31_shm-classic-borrow-range-check
May 5, 2026

Conversation

@ygoldfeld
Copy link
Copy Markdown
Contributor

To code reviewer

  • SHM-jemalloc lacked the same hardening challenges that SHM-classic did, but the odd-alignment acceptance added to SHM-classic borrow_object() could also be applied here (very short change).
  • The bulky/voluminous additions are tests. Detailed review not required for these.

…defensive about strange alignment of the SHM-handle blob.
…ome of its resources from a SHM-jemalloc singleton. (In upcoming release this is smoothed out more generally, but for now this fix prevents issues in a new test being added.
@ygoldfeld ygoldfeld self-assigned this Apr 24, 2026
@ygoldfeld
Copy link
Copy Markdown
Contributor Author

Thanks, @konarlio!

@ygoldfeld ygoldfeld merged commit 3f18295 into main May 5, 2026
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.

2 participants