summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJing Ji <jji@google.com>2020-08-22 19:29:42 -0700
committerJing Ji <jji@google.com>2020-09-14 10:39:06 -0700
commit157550849f0430181fa53c8e1b63112c59c6937b (patch)
tree01a179a7ba42c7538953b184075b5fc3e5354184 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8353fe006400005e6a79f2c38254b968a7aaff59 (diff)
Track the child processes that are forked by app processes
Apps could use Runtime.exec() to spawn child process and framework will have no idea about its lifecycle. Now track those processes whenever we find them - currently during the cpu stats sampling they could be spotted. If it's consuming too much CPU while its parent app process are also in the background, kill it. By default we allow up to 32 such processes; the process with the worst oom adj score of their parents will be killed if there are too many of them. Bug: 160548789 Bug: 157089413 Test: atest AppChildProcessTest Test: atest CtsAppTestCases:ActivityManagerTest Change-Id: I95b20a1f36ccd43d09027201d14872305b169d8d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions