Skip to content

slotsboxobj: avoid in-flight root reclaim overlap and skip redundant full-tree scans - #16

Open
carsontung666 wants to merge 1 commit into
array2d:mainfrom
carsontung666:fix/review-v0.1.7
Open

carsontung666 wants to merge 1 commit into
array2d:mainfrom
carsontung666:fix/review-v0.1.7

Conversation

@carsontung666

@carsontung666 carsontung666 commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Avoid reclaiming from the root inside sbo_find_alloc while traversing a box subtree (prevents freeing an in-flight box and causing overlapping allocations); perform root reclaim at top level in sbo_alloc instead.
  • Track no_reclaimable per shard lock to skip repeated full-tree scans when a full arena has no empty boxes, clearing it when a non-root box becomes empty.
  • Widen stride multiplication in sbo_box_at to size_t and add tiny-pool overlap/churn and full-arena OOM regression phases to 18_model_check.

Verification

  • ctest --test-dir build --output-on-failure: 12/12 passed.

@carsontung666 carsontung666 changed the title fix(slotsboxmalloc): 合并上游 main 并完成代码审查与并发/边界加固 slotsboxobj: avoid in-flight root reclaim overlap and skip redundant full-tree scans Nov 1, 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.

1 participant