summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
author Lokesh Gidra <lokeshgidra@google.com> 2025-02-26 21:15:12 +0000
committer Lokesh Gidra <lokeshgidra@google.com> 2025-02-26 15:38:05 -0800
commitfaa89ac4b60190860ac3c7898929a5bfec3123b3 (patch)
treedfee3d56c8e3207ea5e449c7f1c3e5ac68ce8eff /compiler/optimizing/code_generator.cc
parent710c7ae5369908cc40ecffb2e04eeba03cc3926a (diff)
Fix mid-gen-end alignment when deciding to skip compaction
Ensure that mid-gen never goes lower than its previous level when skipping compaction. This is necessary for correctness as the previous mid-gen-end is during marking to decide what the young-gen range is. If later in PrepareForCompaction() we decide to lower it, then it runs the risk that we may miss dirtying the objects containing references to the diff between new and previous mid-gen. Effectively, this is same as moving some objects back to young-gen, which can cause memory corruption due to missing card marks. Bug: 343220989 Bug: 397381582 Test: ATP test-infra Change-Id: Iabb6a261f36a5ef46d390c97d5933689191bf8da
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
0 files changed, 0 insertions, 0 deletions