GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 31a531fe authored by Kunshan Wang's avatar Kunshan Wang

Allocate slightly more memory for alignment

parent 22b19464
...@@ -8,7 +8,8 @@ class MemoryManager(val heapSize: Word, val globalSize: Word, val stackSize: Wor ...@@ -8,7 +8,8 @@ class MemoryManager(val heapSize: Word, val globalSize: Word, val stackSize: Wor
val totalMemorySize = heapSize + globalSize val totalMemorySize = heapSize + globalSize
implicit val memorySupport = new MemorySupport(totalMemorySize) // Allocate slightly more memory to meet the SimpleImmixSpace's alignment requirement.
implicit val memorySupport = new MemorySupport(totalMemorySize + SimpleImmixSpace.BLOCK_SIZE)
val memoryBegin = memorySupport.muMemoryBegin val memoryBegin = memorySupport.muMemoryBegin
val heapBegin = TypeSizes.alignUp(memoryBegin, SimpleImmixSpace.BLOCK_SIZE) val heapBegin = TypeSizes.alignUp(memoryBegin, SimpleImmixSpace.BLOCK_SIZE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment