Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 3088) |
+++ src/heap.h (working copy) |
@@ -260,6 +260,9 @@ |
// more spaces are needed until it reaches the limit. |
static int Capacity(); |
+ // Returns the amount of memory currently committed for the heap. |
+ static int CommittedMemory(); |
+ |
// Returns the available bytes in space w/o growing. |
// Heap doesn't guarantee that it can allocate an object that requires |
// all available bytes. Check MaxHeapObjectSize() instead. |