You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plan/global.rs
+30-3
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ use enum_map::EnumMap;
33
33
use std::sync::atomic::{AtomicBool,AtomicUsize,Ordering};
34
34
use std::sync::{Arc,Mutex};
35
35
36
-
use mmtk_macros::PlanTraceObject;
36
+
use mmtk_macros::{HasSpaces,PlanTraceObject};
37
37
38
38
pubfncreate_mutator<VM:VMBinding>(
39
39
tls:VMMutatorThread,
@@ -385,7 +385,7 @@ pub enum GcStatus {
385
385
/**
386
386
BasePlan should contain all plan-related state and functions that are _fundamental_ to _all_ plans. These include VM-specific (but not plan-specific) features such as a code space or vm space, which are fundamental to all plans for a given VM. Features that are common to _many_ (but not intrinsically _all_) plans should instead be included in CommonPlan.
387
387
*/
388
-
#[derive(PlanTraceObject)]
388
+
#[derive(HasSpaces,PlanTraceObject)]
389
389
pubstructBasePlan<VM:VMBinding>{
390
390
/// Whether MMTk is now ready for collection. This is set to true when initialize_collection() is called.
CommonPlan is for representing state and features used by _many_ plans, but that are not fundamental to _all_ plans. Examples include the Large Object Space and an Immortal space. Features that are fundamental to _all_ plans must be included in BasePlan.
0 commit comments