Reland: PR_SET_DUMPABLE 1 briefly if opening pagemap fails
This is often necessary on Android to read /proc/self/pagemap. Without prctl(PR_SET_DUMPABLE) opening this file fails in 94% of cases on Canary. This potentially leads to bias in reporting MappedAndResidentMemoryFootprint2. What happened since it last landed as http://crrev.com/809373 * Facepalm and negate the condition in PCHECK, prctl returns zero on success * Actually tested the change on a local non-rooted Pixel 2 device with a release official build with android_channel = canary Bug: 1070618 Change-Id: I99b1a4c8bf820fb22e50b49e72522f8ece1e251d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429763 Commit-Queue: ssid <ssid@chromium.org> Reviewed-by:ssid <ssid@chromium.org> Cr-Commit-Position: refs/heads/master@{#810780}
Showing
Please register or sign in to comment