summaryrefslogtreecommitdiffstats
path: root/src/heap.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-08-31 17:53:14 -0700
committerElliott Hughes <enh@google.com>2011-09-01 08:51:12 -0700
commitbf86d0438e9ef9c145ebcf16a2e74c4efaa2686a (patch)
treee8641925dd68c6e03b41ceb3de58108436f988a0 /src/heap.h
parentad7c2a3b4daa2abd707375444f4b0db7d69a3838 (diff)
downloadart-bf86d0438e9ef9c145ebcf16a2e74c4efaa2686a.zip
art-bf86d0438e9ef9c145ebcf16a2e74c4efaa2686a.tar.gz
art-bf86d0438e9ef9c145ebcf16a2e74c4efaa2686a.tar.bz2
Start adding implementations for runtime-provided native methods.
The library can't do everything... Change-Id: Ib808c00570c7214aeb2ca058b1a66cacbeb372f1
Diffstat (limited to 'src/heap.h')
-rw-r--r--src/heap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/heap.h b/src/heap.h
index d4d43e7..72ceffa 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -44,6 +44,13 @@ class Heap {
// Initiates an explicit garbage collection.
static void CollectGarbage();
+ // Implements java.lang.Runtime.maxMemory.
+ static int64_t GetMaxMemory();
+ // Implements java.lang.Runtime.totalMemory.
+ static int64_t GetTotalMemory();
+ // Implements java.lang.Runtime.freeMemory.
+ static int64_t GetFreeMemory();
+
// Blocks the caller until the garbage collector becomes idle.
static void WaitForConcurrentGcToComplete();