Commit b49effd
optimization of gc load, reduce gc in some scenarios
1.NativeAlloc GC,Increase the count of the number of small native
memory allocations.
2.CollectTransition GC,App's allocations (since last GC) more than the threshold then do GC
when the app was in background. If not then don't do GC.
Expert in charge of ART, please evaluate this CL
and hope to merge it in master branch.
Bug:200116730
Change-Id: Id2977f05eb249691326955e6f2424d4e5e08b4171 parent cac15bc commit b49effd
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
2719 | 2720 | | |
2720 | 2721 | | |
2721 | 2722 | | |
| 2723 | + | |
2722 | 2724 | | |
2723 | 2725 | | |
2724 | 2726 | | |
| |||
3840 | 3842 | | |
3841 | 3843 | | |
3842 | 3844 | | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
3843 | 3855 | | |
3844 | 3856 | | |
3845 | 3857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1471 | 1475 | | |
1472 | 1476 | | |
1473 | 1477 | | |
| |||
0 commit comments