Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proper logging for the treadmill #1101

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions src/util/treadmill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ impl TreadMill {

pub fn add_to_treadmill(&self, object: ObjectReference, nursery: bool) {
if nursery {
// println!("+ an {}", cell);
trace!("Adding {} to nursery", object);
self.alloc_nursery.lock().unwrap().insert(object);
} else {
// println!("+ ts {}", cell);
trace!("Adding {} to to_space", object);
self.to_space.lock().unwrap().insert(object);
}
}
Expand Down Expand Up @@ -93,10 +93,10 @@ impl TreadMill {

pub fn flip(&mut self, full_heap: bool) {
swap(&mut self.alloc_nursery, &mut self.collect_nursery);
// println!("an <-> cn");
trace!("Flipped alloc_nursery and collect_nursery");
if full_heap {
swap(&mut self.from_space, &mut self.to_space);
// println!("fs <-> ts");
trace!("Flipped from_space and to_space");
}
}
}
Expand Down
Loading