Skip to content

Commit ec02302

Browse files
committed
Formatting
1 parent a504184 commit ec02302

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/memory_manager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ pub fn mmtk_init<VM: VMBinding>(builder: &MMTKBuilder) -> Box<MMTK<VM>> {
9292
/// Currently we do not allow removing regions from VM space.
9393
#[cfg(feature = "vm_space")]
9494
pub fn set_vm_space<VM: VMBinding>(mmtk: &'static mut MMTK<VM>, start: Address, size: usize) {
95-
unsafe { mmtk.get_plan_mut() }.base_mut().vm_space.set_vm_region(start, size);
95+
unsafe { mmtk.get_plan_mut() }
96+
.base_mut()
97+
.vm_space
98+
.set_vm_region(start, size);
9699
}
97100

98101
/// Request MMTk to create a mutator for the given thread. The ownership

src/util/heap/layout/map64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ impl Map64 {
5656
// elide the storing of 0 for each of the element. Using standard vector creation,
5757
// such as `vec![SpaceDescriptor::UNINITIALIZED; MAX_CHUNKS]`, will cause severe
5858
// slowdown during start-up.
59-
descriptor_map: unsafe { new_zeroed_vec::<SpaceDescriptor>(vm_layout().max_chunks()) },
59+
descriptor_map: unsafe {
60+
new_zeroed_vec::<SpaceDescriptor>(vm_layout().max_chunks())
61+
},
6062
high_water,
6163
base_address,
6264
fl_page_resources: vec![None; MAX_SPACES],

0 commit comments

Comments
 (0)