Implement VMRuntime.
(Some of this forwards to unimplemented stuff in Heap.)
Change-Id: I01e51d5673e61ddfdbfa2098310122502c3afcf1
diff --git a/src/heap.h b/src/heap.h
index 8ffb558..ab7564a 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -64,6 +64,20 @@
// Implements java.lang.Runtime.freeMemory.
static int64_t GetFreeMemory();
+ // Implements dalvik.system.VMRuntime.clearGrowthLimit.
+ static void ClearGrowthLimit() {
+ UNIMPLEMENTED(WARNING);
+ }
+ // Implements dalvik.system.VMRuntime.getTargetHeapUtilization.
+ static float GetTargetHeapUtilization() {
+ UNIMPLEMENTED(WARNING);
+ return 0.0f;
+ }
+ // Implements dalvik.system.VMRuntime.setTargetHeapUtilization.
+ static void SetTargetHeapUtilization(float target) {
+ UNIMPLEMENTED(WARNING);
+ }
+
// Blocks the caller until the garbage collector becomes idle.
static void WaitForConcurrentGcToComplete();