From 6403cc48707b67b3400bdaf720f3e4777a1b48de Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 4 Jun 2014 16:08:17 -0700 Subject: [PATCH] Temporarily expose dlmalloc_usable_size. Bug: 15425694 Change-Id: I47e1ca598817359260c372fec8072e76886054f0 --- libc/bionic/dlmalloc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libc/bionic/dlmalloc.h b/libc/bionic/dlmalloc.h index e0656877f..482fe0e97 100644 --- a/libc/bionic/dlmalloc.h +++ b/libc/bionic/dlmalloc.h @@ -32,10 +32,15 @@ #define USE_SPIN_LOCKS 0 #define DEFAULT_MMAP_THRESHOLD (64U * 1024U) -/* Export two symbols used by the VM. */ __BEGIN_DECLS + +/* Export two symbols used by the VM. */ int dlmalloc_trim(size_t) __LIBC_ABI_PUBLIC__; void dlmalloc_inspect_all(void (*handler)(void*, void*, size_t, void*), void*) __LIBC_ABI_PUBLIC__; + +/* NVIDIA's libglcore.so has a reference to dlmalloc_usable_size. TODO: remove this. */ +size_t dlmalloc_usable_size(const void*) __LIBC_ABI_PUBLIC__; + __END_DECLS /* Include the proper definitions. */