No description
Find a file
Daniel Colascione 4dd5d00ecc Pin lmkd for real
We pin lmkd in memory so that we don't take page faults (and thus
requisition memory) while we're in the process of responding to a
low-memory condition. mlockall(2) is the right primitive for this
pinning. Previously, we used the MCL_FUTURE flag to mlockall: used
this way, mlockall doesn't actually pin all pages in memory, since
MCL_FUTURE affects only the default flags for future mappings and
doesn't affect mapping already in existence at the time of the
mlockall call --- like the lmkd executable itself.

This patch adds the MCL_CURRENT flag, which also pins all pages
already mapped.

Test: code inspection
Change-Id: I4563959367a2f0a9cadc3ea41731b7f311326685
2018-01-03 12:32:14 -08:00
adb Add std::string StartsWith*/EndsWith* overloads. 2017-12-20 09:42:22 -08:00
adf Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
base Merge "Use LOG_TAG instead of binary name as a tag." 2017-12-20 21:28:29 +00:00
bootstat Merge "Fix sanitizer errors in bootstat.cpp." 2017-12-21 06:42:55 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd debuggerd: restore the location of abort message. 2017-12-22 14:20:12 -08:00
demangle Add OWNERS. 2017-12-07 13:30:03 -08:00
fastboot Merge "fastboot: support make_f2fs and sload_f2fs for win32" 2017-12-08 00:58:05 +00:00
fs_mgr Merge "first stage mount: support mount points like /vendor/abc" 2017-12-14 06:45:37 +00:00
gatekeeperd resolve merge conflicts of 0dd4b6aa3 to stage-aosp-master 2017-09-15 16:50:34 +09:00
healthd Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
include Move android_filesystem_config.h => fs_config.h 2017-08-03 17:20:27 +00:00
init Add std::string StartsWith*/EndsWith* overloads. 2017-12-20 09:42:22 -08:00
libappfuse Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
libasyncio Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libbacktrace libBacktraceOffline: improve unwinding callchains. 2017-12-18 18:20:44 -08:00
libbinderwrapper libbinderwrapper: Android.mk -> Android.bp 2017-04-25 15:55:26 -07:00
libcrypto_utils Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libcutils Add std::string StartsWith*/EndsWith* overloads. 2017-12-20 09:42:22 -08:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libion Merge "libion: Adapt to new ION interface" 2017-09-21 01:06:32 +00:00
libkeyutils Add libkeyutils. 2017-05-10 14:53:28 -07:00
liblog Add suite component to test modules 2017-12-18 18:08:53 +00:00
libmemtrack Add OWNERS. 2017-12-07 13:30:03 -08:00
libmemunreachable Add OWNERS. 2017-12-07 13:30:03 -08:00
libmetricslogger Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativebridge Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativeloader Add std::string StartsWith*/EndsWith* overloads. 2017-12-20 09:42:22 -08:00
libnetutils Add OWNERS. 2017-12-07 13:30:03 -08:00
libpackagelistparser Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libpixelflinger MIPS[64]: codeflinger: Fix build due to unused variable warnings 2017-11-06 16:38:49 +01:00
libprocessgroup Add memcg related configs to init. 2017-07-18 15:58:40 -07:00
libprocinfo Add OWNERS. 2017-12-07 13:30:03 -08:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libsuspend Convert autosuspend_wakeup_count.c to cpp 2017-12-20 17:02:31 -08:00
libsync Merge "libsync: Add fence info tests" 2017-09-26 23:46:32 +00:00
libsystem Define priority for video threads 2017-09-07 16:14:07 -07:00
libsysutils Don't complain that the DNSSL RA option is "unknown". 2017-11-28 06:42:04 +00:00
libunwindstack Add tool to save information from a process. 2017-12-20 12:57:01 -08:00
libusbhost usblib: usb_device_get_string decoding fixes. 2017-12-19 22:20:51 +00:00
libutils Merge "Usage suggestions." 2017-12-19 20:32:29 +00:00
libvndksupport Add OWNERS. 2017-12-07 13:30:03 -08:00
libziparchive zip_archive: Fix a few more badly written tests. 2017-12-27 09:42:00 +00:00
lmkd Pin lmkd for real 2018-01-03 12:32:14 -08:00
logcat Add OWNERS. 2017-12-07 13:30:03 -08:00
logd Add suite component to test modules 2017-12-18 18:08:53 +00:00
logwrapper Add OWNERS. 2017-12-07 13:30:03 -08:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
property_service Only apply match if there is something to apply 2017-12-19 16:47:21 -08:00
qemu_pipe Add OWNERS. 2017-12-07 13:30:03 -08:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir Merge "Separate VNDK libs into another linker namespace" 2017-12-21 01:32:04 +00:00
run-as run-as: Keep supplementary groups. 2017-09-29 15:34:23 -04:00
sdcard Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
shell_and_utilities Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
storaged Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
toolbox Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
trusty Add swillden and dkrahn to OWNERS 2017-12-21 12:45:24 -08:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.clang-format-4 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.bp Export android_filesystem_config.h as a filegroup 2017-01-17 18:20:28 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add VNDK version for namespace configuration files 2017-12-13 10:31:04 +09:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
platform_tools_tool_version.mk Fix warning on the build servers 2017-05-25 12:35:40 -07:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00