Since I was already working on implementing stats (twitter.com/DanielMicay/st), I also implemented Android's internal extensions to jemalloc for providing stats to Bionic:
github.com/GrapheneOS/har
Bionic uses these four functions to implement Android's public malloc_info API.
Quote Tweet
Android Q uses mallinfo as part of the ART GC for better integration with native code: developer.android.com/preview/featur.
Commits:
android.googlesource.com/platform/art/+
android.googlesource.com/platform/art/+
I added an actual implementation to hardened_malloc in preparation for moving to Q:
github.com/GrapheneOS/har
Show this thread
1
1
3
