You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This tracks which pages have been written for a memory region once new has been called
59
-
/// It marks pages as RO and then uses SIGSEGV to detect writes to pages, then updates the page to RW and notes the page index as dirty by writing details to TLS
59
+
/// It marks pages as RO and then uses SIGSEGV to detect writes to pages, then updates the page to RW and notes the page index as dirty by writing details to global lock-free storage
60
60
///
61
61
/// A user calls get_dirty_pages to get a list of dirty pages to get details of the pages that were written to since the tracker was created
62
62
///
@@ -97,7 +97,6 @@ impl LinuxDirtyPageTracker {
97
97
// Get the current process ID
98
98
let current_pid = std::process::id();
99
99
100
-
#[cfg(any(debug_assertions, test))]
101
100
// Check that there is not already a tracker that includes this address range
102
101
// within the same process (virtual addresses are only unique per process)
103
102
for guard inget_trackers().iter(){
@@ -636,7 +635,7 @@ mod tests {
636
635
"Failed to create first tracker for test case: {}",
637
636
description
638
637
);
639
-
let_tracker1 = tracker1.unwrap();
638
+
lettracker1 = tracker1.unwrap();
640
639
641
640
// Try to create overlapping tracker - this should fail
642
641
let test_memory2 = TestSharedMemory::new(new_addr,*new_size);
@@ -654,7 +653,7 @@ mod tests {
654
653
println!(" ✓ Correctly rejected overlap");
655
654
656
655
// Clean up by dropping the tracker
657
-
drop(_tracker1);
656
+
drop(tracker1);
658
657
println!();
659
658
}
660
659
@@ -723,7 +722,7 @@ mod tests {
723
722
"Failed to create first tracker for non-overlap test: {}",
724
723
description
725
724
);
726
-
let_tracker1 = tracker1.unwrap();
725
+
lettracker1 = tracker1.unwrap();
727
726
728
727
// Try to create non-overlapping tracker - this should succeed
729
728
let test_memory2 = TestSharedMemory::new(new_addr,*new_size);
0 commit comments