This repository was archived by the owner on Oct 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ impl<T> Arena<T> {
188188 self . items . truncate ( 1 ) ;
189189 }
190190
191+ // __NOMIC_FOUNDATION_FORK__ (added this function)
191192 pub ( crate ) fn truncate ( & mut self , new_len : usize ) {
192193 self . items . truncate ( new_len) ;
193194 }
Original file line number Diff line number Diff line change @@ -2632,6 +2632,7 @@ impl PartialPaths {
26322632 self . partial_path_edges . clear ( ) ;
26332633 }
26342634
2635+ // __NOMIC_FOUNDATION_FORK__ (added this function)
26352636 pub fn save_checkpoint ( & self ) -> PartialPathsCheckpoint {
26362637 PartialPathsCheckpoint {
26372638 partial_symbol_stacks_len : self . partial_symbol_stacks . len ( ) ,
@@ -2640,6 +2641,7 @@ impl PartialPaths {
26402641 }
26412642 }
26422643
2644+ // __NOMIC_FOUNDATION_FORK__ (added this function)
26432645 pub fn restore_checkpoint ( & mut self , checkpoint : PartialPathsCheckpoint ) {
26442646 self . partial_symbol_stacks
26452647 . truncate ( checkpoint. partial_symbol_stacks_len ) ;
@@ -2650,6 +2652,7 @@ impl PartialPaths {
26502652 }
26512653}
26522654
2655+ // __NOMIC_FOUNDATION_FORK__ (added this struct)
26532656pub struct PartialPathsCheckpoint {
26542657 partial_symbol_stacks_len : usize ,
26552658 partial_scope_stacks_len : usize ,
You can’t perform that action at this time.
0 commit comments