platform_system_core/libprocessgroup
Suren Baghdasaryan 8438595f21 libprocessgroup: Prevent aggregate profiles from referencing stale ones
Currently when vendor overrides a profile the profile object is being
replaced with a new one. However the old profile might have been
referenced by an aggregate profile and with such profile replacement
the aggregate profile is left referencing a stale object. Fix this by
replacing the content of the old profile with the content from the new
one instead of replacing the object itself.

Bug: 148311066
Test: override profiles referenced in aggregate profile and verify
Test: correct replacement
Change-Id: Iabddbf3580455e5263fedad6665cf52fb323e50a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-01-27 21:07:27 +00:00
..
cgrouprc Remove ACgroupController_getFlags to fix API breakage 2019-06-17 16:46:23 +00:00
cgrouprc_format libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
include/processgroup init: always kill oneshot services' process groups. 2019-11-19 15:13:17 -08:00
profiles Add support for freezer cgroup 2019-11-13 20:21:07 +00:00
setup libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
Android.bp libprocessgroup: move native_bridge_support 2019-06-17 12:48:06 -07:00
cgroup_map.cpp Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
OWNERS Add surenb@ to libprocessgroup OWNERS 2019-09-17 08:50:04 -07:00
processgroup.cpp init: always kill oneshot services' process groups. 2019-11-19 15:13:17 -08:00
sched_policy.cpp libprocessgroup: ensure schedboost_enabled is true with uclamp 2020-01-27 11:04:03 +00:00
task_profiles.cpp libprocessgroup: Prevent aggregate profiles from referencing stale ones 2020-01-27 21:07:27 +00:00
task_profiles.h libprocessgroup: Prevent aggregate profiles from referencing stale ones 2020-01-27 21:07:27 +00:00