From c64df290e439eaba5d710d24ca89fff241b67dca Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 7 Jul 2015 19:19:34 -0700 Subject: [PATCH] Android always has . Change-Id: I9e18daeec26380c439f823e6a55ee61773c1b680 --- core/jni/android_os_Debug.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/jni/android_os_Debug.cpp b/core/jni/android_os_Debug.cpp index 526010580a160..1d2a7d9bc214e 100644 --- a/core/jni/android_os_Debug.cpp +++ b/core/jni/android_os_Debug.cpp @@ -34,10 +34,7 @@ #include #include #include - -#ifdef HAVE_MALLOC_H #include -#endif namespace android { @@ -128,32 +125,20 @@ struct stats_t { static jlong android_os_Debug_getNativeHeapSize(JNIEnv *env, jobject clazz) { -#ifdef HAVE_MALLOC_H struct mallinfo info = mallinfo(); return (jlong) info.usmblks; -#else - return -1; -#endif } static jlong android_os_Debug_getNativeHeapAllocatedSize(JNIEnv *env, jobject clazz) { -#ifdef HAVE_MALLOC_H struct mallinfo info = mallinfo(); return (jlong) info.uordblks; -#else - return -1; -#endif } static jlong android_os_Debug_getNativeHeapFreeSize(JNIEnv *env, jobject clazz) { -#ifdef HAVE_MALLOC_H struct mallinfo info = mallinfo(); return (jlong) info.fordblks; -#else - return -1; -#endif } // Container used to retrieve graphics memory pss