diff options
author | Elliott Hughes <enh@google.com> | 2018-08-22 21:05:35 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-22 21:05:35 -0700 |
commit | 493cd7080028cbe69c8af34abdb6c4624c3d994d (patch) | |
tree | 5582baacdca2592252d948928125b965d1e6082d | |
parent | 3a190969e3acc064be0d5c15e0cb5db969c07d2c (diff) | |
parent | 3694cce07a93f39060f116425961610303584a2f (diff) | |
download | jemalloc-493cd7080028cbe69c8af34abdb6c4624c3d994d.tar.gz |
bionic provides PR_SET_VMA now. am: 9f251509c0 am: ac98c4b714
am: 3694cce07a
Change-Id: I983780a6156bb6a4359cf9ccd2fe3a0ddb72568e
-rw-r--r-- | src/pages.c | 6 |
1 files changed, 1 insertions, 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 <sys/prctl.h> - -/* 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 |