diff options
| author | 2022-08-18 20:48:34 +0800 | |
|---|---|---|
| committer | 2022-08-20 18:29:31 +0000 | |
| commit | 1c1bf76a60230a341e421479a0529c4ea7b21cb7 (patch) | |
| tree | 68c53d6a524bcb11006b8265d8cab70d28f9b741 /compiler/optimizing/codegen_test.cc | |
| parent | 641af64ecbb4b254c09800aee8bdfe896320d13d (diff) | |
Optimize GC judgment process from foreground to background
when app goes from the foreground to the background,GC
will occur after 5s when memory grows more than a quarter
of what it can grow. But if the memory of the process
changes during these 5s, such as triggering GC, then
the above judgment conditions will be meaningless.
It would be more reasonable to judge the memory growth
at the time of execution of the task, And can avoid
repeated GC.
Bug: 243053465
Signed-off-by: qiubowen <qiubowen@xiaomi.com>
Change-Id: I89796ab24194c2a8cdff9e8ed8e3913a51bfdc62
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
0 files changed, 0 insertions, 0 deletions