forked from risc0/risc0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up segment path by using
Rc<TempDir>
(risc0#1421)
At this time, the zkVM fails to clean up segment information. Fix this by reference-counting each segment file if it uses a tempdir. We will let the user manage the lifetime of the segment if they designate a specific path to store segments. Some of this is based off of Austin's work. In this implementation, I used `Arc` because `SegmentRef` implements the `send` trait. --------- Co-authored-by: Austin Abell <[email protected]> Co-authored-by: Frank Laub <[email protected]>
- Loading branch information
1 parent
7881c52
commit 88ec08b
Showing
5 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,7 @@ client = [ | |
"dep:prost", | ||
"dep:prost-build", | ||
"dep:protobuf-src", | ||
"dep:tempfile", | ||
"std", | ||
] | ||
cuda = [ | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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