Skip to content

Commit f010965

Browse files
authored
Rename all occurrences of (gc) works to work (#233)
1 parent 63258bc commit f010965

24 files changed

+49
-49
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
//! * [Allocators](util/alloc/allocator/trait.Allocator.html): handlers of allocation requests which allocate objects to the bound space.
2525
//! * [Policies](policy/space/trait.Space.html): definitions of semantics and behaviors for memory regions.
2626
//! Each space is an instance of a policy, and takes up a unique proportion of the heap.
27-
//! * [Work packets](scheduler/work/trait.GCWork.html): units of GC works scheduled by the MMTk's scheduler.
27+
//! * [Work packets](scheduler/work/trait.GCWork.html): units of GC work scheduled by the MMTk's scheduler.
2828
//! * [GC plans](plan/global/trait.Plan.html): GC algorithms composed from components.
2929
//! *Note that currently the choice of plans is made through Rust features, which is a build-time config, so only one plan is present in the generated binary
3030
//! and in this documentation. We plan to make this a run-time config so that users can choose GC plans at boot time.*
3131
//! * [Heap implementations](util/heap/index.html): the underlying implementations of memory resources that support spaces.
32-
//! * [Scheduler](scheduler/scheduler/struct.Scheduler.html): the MMTk scheduler to allow flexible and parallel execution of GC works.
32+
//! * [Scheduler](scheduler/scheduler/struct.Scheduler.html): the MMTk scheduler to allow flexible and parallel execution of GC work.
3333
//! * Interfaces: bi-directional interfaces between MMTk and language implementations
3434
//! i.e. [the memory manager API](memory_manager/index.html) that allows a language's memory manager to use MMTk
3535
//! and [the VMBinding trait](vm/trait.VMBinding.html) that allows MMTk to call the language implementation.

src/plan/barriers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::policy::space::Space;
2-
use crate::scheduler::gc_works::*;
2+
use crate::scheduler::gc_work::*;
33
use crate::scheduler::WorkBucketStage;
44
use crate::util::*;
55
use crate::MMTK;

src/plan/controller_collector_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::scheduler::gc_works::ScheduleCollection;
1+
use crate::scheduler::gc_work::ScheduleCollection;
22
use crate::scheduler::*;
33
use crate::util::OpaquePointer;
44
use crate::vm::VMBinding;

src/plan/gencopy/gc_works.rs renamed to src/plan/gencopy/gc_work.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::global::GenCopy;
22
use crate::plan::CopyContext;
33
use crate::plan::PlanConstraints;
44
use crate::policy::space::Space;
5-
use crate::scheduler::gc_works::*;
5+
use crate::scheduler::gc_work::*;
66
use crate::scheduler::WorkerLocal;
77
use crate::scheduler::{GCWork, GCWorker, WorkBucketStage};
88
use crate::util::alloc::{Allocator, BumpAllocator};

src/plan/gencopy/global.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::gc_works::{GenCopyCopyContext, GenCopyMatureProcessEdges, GenCopyNurseryProcessEdges};
1+
use super::gc_work::{GenCopyCopyContext, GenCopyMatureProcessEdges, GenCopyNurseryProcessEdges};
22
use super::mutator::ALLOCATOR_MAPPING;
33
use crate::mmtk::MMTK;
44
use crate::plan::global::BasePlan;
@@ -9,7 +9,7 @@ use crate::plan::Plan;
99
use crate::plan::PlanConstraints;
1010
use crate::policy::copyspace::CopySpace;
1111
use crate::policy::space::Space;
12-
use crate::scheduler::gc_works::*;
12+
use crate::scheduler::gc_work::*;
1313
use crate::scheduler::*;
1414
use crate::util::alloc::allocators::AllocatorSelector;
1515
use crate::util::constants::LOG_BYTES_IN_PAGE;

src/plan/gencopy/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub(super) mod gc_works;
1+
pub(super) mod gc_work;
22
pub(super) mod global;
33
pub(super) mod mutator;
44

src/plan/gencopy/mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::gc_works::*;
1+
use super::gc_work::*;
22
use super::GenCopy;
33
use crate::plan::barriers::*;
44
use crate::plan::mutator_context::Mutator;

src/plan/semispace/gc_works.rs renamed to src/plan/semispace/gc_work.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::global::SemiSpace;
22
use crate::plan::CopyContext;
33
use crate::plan::PlanConstraints;
44
use crate::policy::space::Space;
5-
use crate::scheduler::gc_works::*;
5+
use crate::scheduler::gc_work::*;
66
use crate::scheduler::WorkerLocal;
77
use crate::util::alloc::{Allocator, BumpAllocator};
88
use crate::util::forwarding_word;

src/plan/semispace/global.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::gc_works::{SSCopyContext, SSProcessEdges};
1+
use super::gc_work::{SSCopyContext, SSProcessEdges};
22
use crate::mmtk::MMTK;
33
use crate::plan::global::BasePlan;
44
use crate::plan::global::CommonPlan;
@@ -9,7 +9,7 @@ use crate::plan::Plan;
99
use crate::plan::PlanConstraints;
1010
use crate::policy::copyspace::CopySpace;
1111
use crate::policy::space::Space;
12-
use crate::scheduler::gc_works::*;
12+
use crate::scheduler::gc_work::*;
1313
use crate::scheduler::*;
1414
use crate::util::alloc::allocators::AllocatorSelector;
1515
use crate::util::heap::layout::heap_layout::Mmapper;

src/plan/semispace/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub(super) mod gc_works;
1+
pub(super) mod gc_work;
22
pub(super) mod global;
33
pub(super) mod mutator;
44

0 commit comments

Comments
 (0)