Index: src/spaces.h |
=================================================================== |
--- src/spaces.h (revision 13274) |
+++ src/spaces.h (working copy) |
@@ -888,7 +888,9 @@ |
// the code range. On platforms with no separate code range, should |
// not be called. |
MUST_USE_RESULT Address AllocateRawMemory(const size_t requested, |
- size_t* allocated); |
+ size_t* allocated, |
+ bool commit = true); |
+ bool CommitRawMemory(Address start, size_t size); |
void FreeRawMemory(Address buf, size_t length); |
private: |
@@ -1039,10 +1041,20 @@ |
MemoryChunk* AllocateChunk(intptr_t body_size, |
Executability executable, |
Space* space); |
+ Address ReserveChunk(size_t requested, |
+ Executability executable, |
+ VirtualMemory* controller); |
+ MemoryChunk* CommitChunk(size_t body_size, |
+ Executability executable, |
+ VirtualMemory* reservation, |
+ Space* owner); |
Address ReserveAlignedMemory(size_t requested, |
size_t alignment, |
+ Executability executable, |
VirtualMemory* controller); |
+ Address CommitAlignedMemory(Executability executable, |
+ VirtualMemory* controller); |
Address AllocateAlignedMemory(size_t requested, |
size_t alignment, |
Executability executable, |