From 81028f988c709ec31b9e2cc35071d20c26b7487b Mon Sep 17 00:00:00 2001 From: Quallenauge Date: Wed, 21 Oct 2020 21:19:01 +0200 Subject: [PATCH] msm8974-common: Force build scudo free 32 bit variant of libc. We have issues with camera blobs which doesn't play well with scudo allocation/deallocation tracking. Scudo reports corrupted header when stopping a video recording. Because we aren't alone with this (also upstream seems to have trouble with camera modules) use the 32 libc which is used only by a few components, like camera and audio. Because docs states, that libc with the svelte take less RSS, but is a little bit slower. https://android.googlesource.com/platform/bionic/+/master/docs/native_allocator.md This is the reason to not enable this target wide. Change-Id: Ic0d950817238a227218f59b95e5fd2ffd66e786a --- BoardConfigCommon.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index aabbea0..2c9312f 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -41,6 +41,7 @@ BOARD_HAVE_BLUETOOTH := true # Camera TARGET_HAS_LEGACY_CAMERA_HAL1 := true +MALLOC_SVELTE_FOR_LIBC32 := true # Charger BOARD_BATTERY_DEVICE_NAME := "battery"