mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #388] [MERGED] Mark speed_up_quit() as unsafe with safety contract #407
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/388
Author: @Copilot
Created: 1/20/2026
Status: ✅ Merged
Merged: 1/20/2026
Merged by: @SF-Zhou
Base:
main← Head:copilot/strengthen-speed-up-quit-docs📝 Commits (2)
7ee291aInitial plan788ddf1Mark speed_up_quit as unsafe and add safety documentation📊 Changes
3 files changed (+13 additions, -4 deletions)
View changed files
📝
src/storage/chunk_engine/src/bin/bench.rs(+2 -1)📝
src/storage/chunk_engine/src/core/engine.rs(+10 -2)📝
src/storage/chunk_engine/src/cxx.rs(+1 -1)📄 Description
Engine::speed_up_quit()intentionally leaksArcpointers viaArc::into_raw()to avoid shutdown overhead. This is only safe when the process exits immediately—calling it elsewhere (tests with repeated engine creation, hot-reload, refactored shutdown paths) causes operational memory leaks.Changes
unsafe: Forces explicit acknowledgment at call sites# Safetydocumentation: Documents the "must only call before process exit" contractunsafeblocks with// SAFETYcomments explaining why each call is safeExample
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.