Remove outdated fields in PlanConstraints #588
Labels
A-plan
Area: Plan
C-cleanup
Category: Cleanup
F-good-first-issue
Call For Participation: Suitable issues for first-time contributors
P-normal
Priority: Normal.
PlanConstraints
are constant for each plan. But some of its fields are unused, or superseded by other mechanisms.moves_objects
mmtk-core/src/plan/plan_constraints.rs
Line 11 in 3dbdd7a
moves_objects
is superseded bymay_move_objects()
inPlanTraceObject
, which is a constant value based on the trace kind. It is helpful for plans like Immix, for which, some traces (defrag) move objects and other traces (fast) do not move objects.gc_header_bits
andgc_header_words
mmtk-core/src/plan/plan_constraints.rs
Lines 12 to 13 in 3dbdd7a
We now have metadata specs, like mark bit, log bit. We no longer need a plan to specify the GC bits/words they need.
num_specialized_scans
mmtk-core/src/plan/plan_constraints.rs
Line 14 in 3dbdd7a
This is unused. This seems related with object scanning, which is now in the bindings.
max_non_los_copy_bytes
mmtk-core/src/plan/plan_constraints.rs
Line 21 in 3dbdd7a
This is currently unused. We need to decide whether we need to check object size before copying (currently we assume we won't). The difference is that in one case, we could copy nursery->mature or nursery->LOS, and in the other case, we only copy nursery->mature (large objects are directly allocated into LOS' logical nursery). A related issue: #452.
needs_linear_scan
mmtk-core/src/plan/plan_constraints.rs
Line 30 in 3dbdd7a
Java MMTk uses this in object model. I am not sure how it works. We need to further check this. However, for MMTk core, I assume we will allow linear scan in some policies and when
global_alloc_bit
is enabled. So we may need to make sure this value is set properly.needs_concurrent_workers
mmtk-core/src/plan/plan_constraints.rs
Line 31 in 3dbdd7a
Currently unused.
generate_gc_trace
mmtk-core/src/plan/plan_constraints.rs
Line 32 in 3dbdd7a
This should be removed. It is related to GCTrace in Java MMTk, and we do not plan to port it.
The text was updated successfully, but these errors were encountered: