diff options
author | Elliott Hughes <enh@google.com> | 2011-08-31 17:53:14 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-09-01 08:51:12 -0700 |
commit | bf86d0438e9ef9c145ebcf16a2e74c4efaa2686a (patch) | |
tree | e8641925dd68c6e03b41ceb3de58108436f988a0 /src/heap.h | |
parent | ad7c2a3b4daa2abd707375444f4b0db7d69a3838 (diff) | |
download | art-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |