pai->categories = categories;
if (pid > 0) {
+ proc_set_process_memory_state(pai, MEMCG_TOP, NULL, OOMADJ_APP_MAX + 10);
+ pai->memory.use_mem_limit = false;
+ pai->memory.oom_killed = false;
+ pai->memory.memlimit_update_exclude = false;
+ pai->memory.foreground_oom_score_adj = OOMADJ_APP_MAX + 10;
+
pai->program = proc_add_program_list(type, pai, pkgid, false);
if (!pai->starttime) {
ret = proc_get_uptime(&uptime);
else
pai->starttime = uptime;
}
- proc_set_process_memory_state(pai, MEMCG_TOP, NULL, OOMADJ_APP_MAX + 10);
- pai->memory.use_mem_limit = false;
- pai->memory.oom_killed = false;
- pai->memory.memlimit_update_exclude = false;
- pai->memory.foreground_oom_score_adj = OOMADJ_APP_MAX + 10;
if (fixed_app_list_get()) {
int error;