OSDN Git Service

Allocate a contiguous region of virtual memory to be subdivided among
authorCarl Shapiro <cshapiro@google.com>
Wed, 10 Feb 2010 00:26:30 +0000 (16:26 -0800)
committerCarl Shapiro <cshapiro@google.com>
Thu, 11 Feb 2010 19:12:53 +0000 (11:12 -0800)
commita199eb70871a8c142a723d76b1b08939286a3199
tree7152aad1cbb5c20166125451805c8fc443896fcd
parent7915708d0a123738a6a62ac94aca4a7743eb6563
Allocate a contiguous region of virtual memory to be subdivided among
the various heaps managed by the garbage collector.  Because we cannot
tell how far the break has been advanced by morecore, we over allocate
virtual memory and grain each heap on a multiple of the maximum heap
size.  If we could reckon the position of the break, we could allocate
just as many pages as required.  This requires exporting more state
from mspace.c, a refinement I will reserve for a future change list.
vm/alloc/Heap.c
vm/alloc/HeapSource.c
vm/alloc/HeapSource.h