diff options
| author | 2023-04-18 15:37:56 -0700 | |
|---|---|---|
| committer | 2023-04-19 20:42:34 +0000 | |
| commit | 631b3a71ad778ebb63f447a77de0ff4fd4392a39 (patch) | |
| tree | 7f9608a3d20106508852d95781337f02c6c90e0b /compiler/optimizing/instruction_builder.cc | |
| parent | 5eb1fd0dae3832ceee2102613bb08c291daca6f3 (diff) | |
Fix Transition GC initiation check
num_bytes_allocated_since_gc should always be +ve or zero and hence
enforce that. Its value is used in the Transition GC check. Initially,
in early app startup the num_bytes_alive_after_gc seems to be coming
from the Zygote to all processes and hence results in a -ve number when
the GetBytesAllocated() is smaller. This results in a Transition GC
happening when it should not. This change fixes this case and ensures
correct values are used.
Test: Local testing
Bug: 272381448
Change-Id: Ie234a566cb79b932866e2b8d742adb87c444ccae
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions