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