pipes/pipe_paging.cc | raw changeset files shortlog |
1.1 --- a/pipes/pipe_paging.cc Wed Apr 07 00:49:13 2021 +0200 1.2 +++ b/pipes/pipe_paging.cc Thu Apr 08 23:55:47 2021 +0200 1.3 @@ -10,7 +10,7 @@ 1.4 { 1.5 /* Reserve space for two pipe regions. */ 1.6 1.7 - _memory = new MemoryPreallocated(memory, size * 2); 1.8 + _memory = new MemoryPreallocated(memory, round(size, memory->region_size()) * 2); 1.9 _queue = new PageQueuePartitioned(); 1.10 _pages = new Pages(_memory, _queue); 1.11