Skip to content

Commit

Permalink
Changing from is_collection_disabled => is_collection_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
udesou committed Feb 1, 2024
1 parent b822f00 commit 8ac963a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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"]

# Uncomment the following lines to use mmtk-core from the official repository.
git = "https://github.com/udesou/mmtk-core"
rev = "b82a596"
rev = "e9660c7"

# Uncomment the following line to use mmtk-core from a local repository.
#path = "../../mmtk-core"
Expand Down
4 changes: 2 additions & 2 deletions mmtk/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use std::thread;
pub struct VMCollection {}

impl Collection<Ruby> for VMCollection {
fn is_collection_disabled() -> bool {
!crate::BINDING_FAST.gc_enabled.load(Ordering::Relaxed)
fn is_collection_enabled() -> bool {
crate::BINDING_FAST.gc_enabled.load(Ordering::Relaxed)
}

fn stop_all_mutators<F>(tls: VMWorkerThread, mut mutator_visitor: F)
Expand Down

0 comments on commit 8ac963a

Please sign in to comment.