From d98e1a86f31592d74779faa15c4d182751160380 Mon Sep 17 00:00:00 2001 From: Vilas Bhat Date: Wed, 22 May 2024 20:18:11 +0000 Subject: [PATCH] ndk: Remove MALLOC_LOW_MEMORY config for the ndk This switches the ndk to using scudo instead of jemalloc. Bug: 337242400 Test: Built NDK and tested lldb-server on both 4k and 16k devices ``` $ cd aosp && mkdir ndk_prebuilts $ export OUT_DIR=ndk_prebuilts $ ./build/soong/scripts/build-ndk-prebuilts.sh $ cp -r ~/aosp/ndk_prebuilts/soong/ndk/sysroot/* ~/llvm-project/toolchain/prebuilts/ndk/releases/r27/toolchains/llvm/prebuilt/linux-x86_64/sysroot/ $ cd ../llvm-project $ python3 toolchain/llvm_android/build.py $ adb push out/stage2-install/runtimes_ndk_cxx/aarch64/lldb-server /data/local/tmp/ $ adb shell "getconf PAGE_SIZE" 16384 $ adb shell "strace /data/local/tmp/lldb-server" mprotect(
, 16384, PROT_READ) = 0 exit_group(0) = ? +++ exited with 0 +++ ``` Change-Id: I982595278d70cb39b9f6c7c8e9b95f12723fc5bf --- target/board/ndk/BoardConfig.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/board/ndk/BoardConfig.mk b/target/board/ndk/BoardConfig.mk index c7d9d4c908..e367918a8d 100644 --- a/target/board/ndk/BoardConfig.mk +++ b/target/board/ndk/BoardConfig.mk @@ -14,5 +14,3 @@ # TARGET_ARCH_SUITE := ndk - -MALLOC_LOW_MEMORY := true