From 9f251509c0ab9999f11a2439961f8ef1f034075b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 22 Aug 2018 12:20:15 -0700 Subject: bionic provides PR_SET_VMA now. Bug: N/A Test: builds Change-Id: Idd5c63d26cdba56bdfd8080749d1320d481ef3fb --- src/pages.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages.c b/src/pages.c index 44f82ee..9b26d61 100644 --- a/src/pages.c +++ b/src/pages.c @@ -20,10 +20,6 @@ static bool os_overcommits; #if defined(__ANDROID__) #include - -/* Definitions of prctl arguments to set a vma name in Android kernels. */ -#define ANDROID_PR_SET_VMA 0x53564d41 -#define ANDROID_PR_SET_VMA_ANON_NAME 0 #endif /******************************************************************************/ @@ -70,7 +66,7 @@ pages_map(void *addr, size_t size, bool *commit) #if defined(__ANDROID__) if (ret != NULL) { /* Name this memory as being used by libc */ - prctl(ANDROID_PR_SET_VMA, ANDROID_PR_SET_VMA_ANON_NAME, ret, + prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ret, size, "libc_malloc"); } #endif -- cgit v1.2.3