Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
apply review
  • Loading branch information
youknowone committed Jan 31, 2026
commit 06c8270640467bac67552a8f02c4e4454aa37562
11 changes: 10 additions & 1 deletion crates/vm/src/gc_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ bitflags::bitflags! {
}
}


/// Statistics for a single generation (gc_generation_stats)
#[derive(Debug, Default, Clone, Copy)]
pub struct GcStats {
Expand Down Expand Up @@ -281,6 +280,16 @@ impl GcState {
tracked.remove(&gc_ptr);
}

// Remove from permanent tracking
if let Ok(mut permanent) = self.permanent_objects.write()
&& permanent.remove(&gc_ptr)
{
let count = self.permanent.count.load(Ordering::SeqCst);
if count > 0 {
self.permanent.count.fetch_sub(1, Ordering::SeqCst);
}
}

// Remove from finalized set
if let Ok(mut finalized) = self.finalized_objects.write() {
finalized.remove(&gc_ptr);
Expand Down
Loading