diff options
| author | Leon Clarke <leonclarke@google.com> | 2010-02-03 11:58:03 +0000 |
|---|---|---|
| committer | Leon Clarke <leonclarke@google.com> | 2010-02-03 11:58:03 +0000 |
| commit | 4515c472dc3e5ed2448a564600976759e569a0a8 (patch) | |
| tree | 67d539a5e9fa0e72e2490426693bf73d1e36173f /src/spaces.h | |
| parent | d91b9f7d46489a9ee00f9cb415630299c76a502b (diff) | |
| download | android_external_v8-4515c472dc3e5ed2448a564600976759e569a0a8.tar.gz android_external_v8-4515c472dc3e5ed2448a564600976759e569a0a8.tar.bz2 android_external_v8-4515c472dc3e5ed2448a564600976759e569a0a8.zip | |
Update v8 to bleeding_edge revision 3784
Diffstat (limited to 'src/spaces.h')
| -rw-r--r-- | src/spaces.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spaces.h b/src/spaces.h index 37117f95..850a7236 100644 --- a/src/spaces.h +++ b/src/spaces.h @@ -438,13 +438,16 @@ class MemoryAllocator : public AllStatic { // and false otherwise. static bool CommitBlock(Address start, size_t size, Executability executable); - // Uncommit a contiguous block of memory [start..(start+size)[. // start is not NULL, the size is greater than zero, and the // block is contained in the initial chunk. Returns true if it succeeded // and false otherwise. static bool UncommitBlock(Address start, size_t size); + // Zaps a contiguous block of memory [start..(start+size)[ thus + // filling it up with a recognizable non-NULL bit pattern. + static void ZapBlock(Address start, size_t size); + // Attempts to allocate the requested (non-zero) number of pages from the // OS. Fewer pages might be allocated than requested. If it fails to // allocate memory for the OS or cannot allocate a single page, this |
