From 121185fe7d01e119bd2749ff4a7c437e7e0955f8 Mon Sep 17 00:00:00 2001 From: "baker.xu" Date: Tue, 17 Jun 2025 16:06:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=8F=B7=EF=BC=9A#ICFS63=20=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=EF=BC=9A=E9=80=82=E9=85=8D=E6=96=B0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=BC=80=E6=9C=BA=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=90=8E=E5=9C=A8/data/log/faultlog/faultlogger/=20?= =?UTF-8?q?=E6=9C=89crash=E6=96=87=E4=BB=B6=E3=80=82=20Signed-off-by:=20?= =?UTF-8?q?=E5=BE=90=E5=95=9F=E5=BD=AC=20<935159042@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reclaim_priority_manager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/memmgrservice/src/reclaim_priority_manager/reclaim_priority_manager.cpp b/services/memmgrservice/src/reclaim_priority_manager/reclaim_priority_manager.cpp index b34d0a3..f2311a3 100644 --- a/services/memmgrservice/src/reclaim_priority_manager/reclaim_priority_manager.cpp +++ b/services/memmgrservice/src/reclaim_priority_manager/reclaim_priority_manager.cpp @@ -559,7 +559,17 @@ void ReclaimPriorityManager::CheckCreateProcPriorityDelay(pid_t pid, int uid) } std::shared_ptr account = FindOsAccountById(accountId); + if (!account) { + HILOGE("account is null, skip update."); + return; + } + std::shared_ptr bundle = account->FindBundleById(uid); + if (!bundle) { + HILOGE("bundle is null, skip update."); + return; + } + ProcessPriorityInfo &proc = bundle->FindProcByPid(pid); UpdatePriorityByProcStatus(bundle, proc); OomScoreAdjUtils::WriteOomScoreAdjToKernel(bundle); -- Gitee