Skip to content
Commit 0ff6541b authored by Rick Yiu's avatar Rick Yiu Committed by Wei Wang
Browse files

Use SetProcessProfilesCached in android_os_Process_setProcessGroup

Currently, android_os_Process_setProcessGroup uses SetTaskProfiles for
each thread of a process when switching group, which will hold lock each
time. Replace it with SetProcessProfilesCached so that it only does it once.

Bug: 215557553
Test: cgroup migrates as expected
Change-Id: I0ebb031a395932c269e88e52faed1661bbf8420a
parent 484a35da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment