Skip to content

Commit 198a142

Browse files
authored
Rename primary of BasePlan and CommonPlan to full_heap (#447)
In MMTk parlance, primary means whether an action is to be executed by a single thread, which is not the usage here.
1 parent f006c71 commit 198a142

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/plan/global.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<VM: VMBinding> BasePlan<VM> {
589589
panic!("No special case for space in trace_object({:?})", _object);
590590
}
591591

592-
pub fn prepare(&mut self, _tls: VMWorkerThread, _primary: bool) {
592+
pub fn prepare(&mut self, _tls: VMWorkerThread, _full_heap: bool) {
593593
#[cfg(feature = "code_space")]
594594
self.code_space.prepare();
595595
#[cfg(feature = "code_space")]
@@ -600,7 +600,7 @@ impl<VM: VMBinding> BasePlan<VM> {
600600
self.vm_space.prepare();
601601
}
602602

603-
pub fn release(&mut self, _tls: VMWorkerThread, _primary: bool) {
603+
pub fn release(&mut self, _tls: VMWorkerThread, _full_heap: bool) {
604604
#[cfg(feature = "code_space")]
605605
self.code_space.release();
606606
#[cfg(feature = "code_space")]
@@ -831,16 +831,16 @@ impl<VM: VMBinding> CommonPlan<VM> {
831831
self.base.trace_object::<T, C>(trace, object)
832832
}
833833

834-
pub fn prepare(&mut self, tls: VMWorkerThread, primary: bool) {
834+
pub fn prepare(&mut self, tls: VMWorkerThread, full_heap: bool) {
835835
self.immortal.prepare();
836-
self.los.prepare(primary);
837-
self.base.prepare(tls, primary)
836+
self.los.prepare(full_heap);
837+
self.base.prepare(tls, full_heap)
838838
}
839839

840-
pub fn release(&mut self, tls: VMWorkerThread, primary: bool) {
840+
pub fn release(&mut self, tls: VMWorkerThread, full_heap: bool) {
841841
self.immortal.release();
842-
self.los.release(primary);
843-
self.base.release(tls, primary)
842+
self.los.release(full_heap);
843+
self.base.release(tls, full_heap)
844844
}
845845

846846
pub fn schedule_common<E: ProcessEdgesWork<VM = VM>>(

0 commit comments

Comments
 (0)