Mmap API tidying.
Establish more clear expectations for who is expected to page-align what and when.
This commit is contained in:
@@ -35,7 +35,7 @@ impl CodeMemory {
|
||||
if self.current.len() - self.position < size {
|
||||
self.mmaps.push(mem::replace(
|
||||
&mut self.current,
|
||||
Mmap::with_size(cmp::max(0x10000, size.next_power_of_two()))?,
|
||||
Mmap::with_at_least(cmp::max(0x10000, size))?,
|
||||
));
|
||||
self.position = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user