diff options
| author | Ian Rogers <irogers@google.com> | 2012-08-22 22:14:32 -0700 |
|---|---|---|
| committer | Ian Rogers <irogers@google.com> | 2012-08-22 22:14:32 -0700 |
| commit | 2f8d5e11f735e9ee8e235c31b3f113f6c90ad63c (patch) | |
| tree | 37d877e6bf2b237906a7d534901094e3fcae33c3 /vm/compiler/codegen/arm/CodegenDriver.cpp | |
| parent | b931f9065990520bf34b8c6128e069b4cca4a7ec (diff) | |
Trim pre-Zygote fork, fix under-estimate of heap limit.
Card scanning uses dvmHeapSourceGetValue to scan from the heap base to
the total foot print of the heap. Trimming the Zygote may lower the
footprint of the heap by creating a hole in the middle. This hole is
unaccounted for in the card scanning leading to missed dirty cards.
This was a regression introduced by:
https://android-review.googlesource.com/#/c/41728/
as it didn't #define MORECORE_CANNOT_TRIM 1 that was previously defined
here:
https://android-review.googlesource.com/#/c/41731/4/libcutils/mspace.c
Introduce a notion of dvmHeapSourceGetLimit so that card scanning
doesn't rely on footprint. Trim the heap before forking the Zygote. This
change continues to enable morecore trimming of mspaces.
Change-Id: I3f0b12371097f50a1f920cac25846ca08685e7ed
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.cpp')
0 files changed, 0 insertions, 0 deletions
