Skip to content

Commit

Permalink
Update Ruby repo rev for eBPF-related commits
Browse files Browse the repository at this point in the history
Update the revision of the Ruby repo.  It includes C-side changes for
exposing some tables and statistic information so that we can display
more information on the eBPF timeline.

Also fix formatting
  • Loading branch information
wks committed Oct 21, 2024
1 parent 35f6c58 commit 2ac8826
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"
# Metadata for the Ruby repository
[package.metadata.ci-repos.ruby]
repo = "mmtk/ruby" # This is used by actions/checkout, so the format is "owner/repo", not URL.
rev = "0511ec851cd290fac520dbe5a862b409488e159e"
rev = "9036b4e1a403fdcb8e6f171ee3376d7879351e80"

[lib]
name = "mmtk_ruby"
Expand Down
17 changes: 14 additions & 3 deletions mmtk/src/weak_proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,13 @@ impl WeakProcessor {
(crate::upcalls().cleanup_generic_iv_tbl)();
let new_size = (upcalls().st_get_num_entries)(generic_iv_tbl);
log::debug!("Cleaning up global ivtbl entries ({new_size} entries after).");
probe!(mmtk_ruby, update_generic_iv_tbl, items_moved, old_size, new_size);
probe!(
mmtk_ruby,
update_generic_iv_tbl,
items_moved,
old_size,
new_size
);
}
}

Expand Down Expand Up @@ -236,7 +242,7 @@ impl GCWork<Ruby> for ProcessObjFreeCandidates {
}

let new_cands = new_candidates.len();
*obj_free_candidates = new_candidates;
*obj_free_candidates = new_candidates;
probe!(mmtk_ruby, process_obj_free_candidates, old_cands, new_cands);
}
}
Expand Down Expand Up @@ -462,7 +468,12 @@ impl GCWork<Ruby> for UpdateWbUnprotectedObjectsList {
let new_size = objects.len();
debug!("Retained {new_size} live WB-unprotected objects.");

probe!(mmtk_ruby, update_wb_unprotected_objects_list, old_size, new_size);
probe!(
mmtk_ruby,
update_wb_unprotected_objects_list,
old_size,
new_size
);
}
}

Expand Down

0 comments on commit 2ac8826

Please sign in to comment.