diff options
author | Ronnie Leng <ronnie.leng@gmail.com> | 2015-03-25 10:57:24 -0500 |
---|---|---|
committer | Ronnie Leng <ronnie.leng@gmail.com> | 2015-04-01 11:23:45 -0500 |
commit | 4c5c6f43dd81031c2501e35b355fad5ebbf0ab87 (patch) | |
tree | ba60d7e5569e1cd57b374f904f4a7f119c2615d1 /rs/java/android/renderscript/RenderScript.java | |
parent | 039013c28ef634ab1b630292cc38fb57f206dffd (diff) |
[ProcessStas] fix index out of bounds when add duration.
Root Cause:
There is a defect in current ProcessStats design
and following is the scenario:
1. Process A is started due to activity with
name of A
2. Process A creates ProessState with application
uid of A
3. Process B is started due to isolated service
declared in application A with name of A
4. Process B uses ProcessState of Process A as
it uses same application uid of A
5. Process B is finished and it leads to
ProcessState marked as dead
6. Process A still keeps using the invalid
ProcessState in dead state
7. IndexOutOfBoundsException is triggered when
system tries to update process state of Process A
Resolution:
use process uid to replace application uid for
getProcessStatLocked.
Change-Id: I881ad9fc492c9e1a892c9e957180cebcfef8352d
Signed-off-by: Ronnie Leng <ronnie.leng@gmail.com>
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions