diff options
author | 2018-09-17 08:18:44 +0000 | |
---|---|---|
committer | 2018-09-17 08:18:44 +0000 | |
commit | 946fbaa771bc6094e6cfb5d5b8d603eadf528b1d (patch) | |
tree | cabeafcf185c711b5e1ca22f9cbcd3ffbcca19ae | |
parent | 069f1c9f4ff048a2eb2a0202a118106d6a4e09a7 (diff) | |
parent | fdd7a7e5b5daf82c28abef5a266ea24e4eb1b04f (diff) |
Merge "Label the libwebview address space reservation."
-rw-r--r-- | native/webview/loader/loader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/native/webview/loader/loader.cpp b/native/webview/loader/loader.cpp index fee2a259cb54..7f71f6312f00 100644 --- a/native/webview/loader/loader.cpp +++ b/native/webview/loader/loader.cpp @@ -26,6 +26,7 @@ #include <string.h> #include <unistd.h> #include <sys/mman.h> +#include <sys/prctl.h> #include <sys/stat.h> #include <sys/types.h> @@ -58,6 +59,7 @@ jboolean DoReserveAddressSpace(jlong size) { vsize, strerror(errno)); return JNI_FALSE; } + prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, addr, vsize, "libwebview reservation"); gReservedAddress = addr; gReservedSize = vsize; ALOGV("Reserved %zd bytes at %p", vsize, addr); |