summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Jing Ji <jji@google.com> 2023-12-11 20:36:12 -0800
committer Jing Ji <jji@google.com> 2023-12-14 22:52:57 -0800
commit0671d4e884d9468feb2fcb9c0fbec27243b49537 (patch)
treec4941233c76fe9117a96bd1ba9f0454fec831654 /libs/input/PointerController.cpp
parente68ec558aadcdb11a5c39d6c4268cf6c417b4787 (diff)
Clear the process record nodes' fields during reset
When resetting the linked list for the process records, individual node's prev/next fields should be cleared too. Also, link/unlink process record nodes correctly The new oom adjuster implementation maintains a set of linked lists where the nodes are basically the process records. These records are added/remove from this list along with the process lifecycle. However, there are cases where the process hasn't been fully started but the oom adjuster has started computations on these new records. In these case, we should put them into the list as long as we're creating these process records, or otherwise we'll be hitting NPE issue. Bug: 312498619 Test: atest CtsAppTestCases Test: atest FrameworksMockingServicesTests:MockingOomAdjusterTests Test: atest FrameworksMockingServicesTests:BroadcastQueueTest Test: atest FrameworksMockingServicesTests:BroadcastQueueModernImplTest Test: atest FrameworksMockingServicesTests:AsyncProcessStartTest Change-Id: I9232514b81bca433b66f0895e5a652198dd60d16
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions