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

No scanning an object twice in each GC. #120

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
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
36 changes: 18 additions & 18 deletions mmtk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ features = ["is_mmtk_object", "object_pinning", "sticky_immix_non_moving_nursery

# Uncomment the following lines to use mmtk-core from the official repository.
git = "https://github.com/mmtk/mmtk-core.git"
rev = "ec745353a8de72b645613e0fef3ab7f5f1ad9bd1"
rev = "68bf1b638263b250b12e55ef25bf8d09b01ca0b0"

# Uncomment the following line to use mmtk-core from a local repository.
#path = "../../mmtk-core"
Expand Down
5 changes: 5 additions & 0 deletions mmtk/src/scanning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ use mmtk::{Mutator, MutatorContext};
pub struct VMScanning {}

impl Scanning<Ruby> for VMScanning {
/// CRuby may do some non-thread-safe operations, such as cleaning up the call cache, while
/// scanning an object. We force each object to be scanned at most once during each GC. This
/// currently only affects the MarkSweep plan.
const UNIQUE_OBJECT_ENQUEUING: bool = true;

fn support_slot_enqueuing(_tls: VMWorkerThread, _object: ObjectReference) -> bool {
false
}
Expand Down