aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.cpp
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2011-11-07 16:57:54 -0800
committerAndy McFadden <fadden@android.com>2011-11-09 13:32:21 -0800
commitc0a18856ed67b0e77a8202028f27948e1387243d (patch)
tree0336b3232a82bca20a8f2b62b66430fa767f534a /vm/compiler/codegen/arm/CodegenDriver.cpp
parent2f942b458585539079ef22fa9d7ffc51615522c6 (diff)
Further refinement of card table clear
We're currently using memset() to clear cards out to the growth limit, which on a device configured for 48MB/128MB process caps means we're sitting on 384KB or 1MB of pages. We can reduce that substantially. This change attempts to reduce the memset() length to the currently active portion of the card table, based on the placement of objects in the "live objects" bitmap. This should avoid faulting in card pages that we don't actually need. This is suboptimal when parts of the card table are used briefly and then ignored for a while. An alternative implementation, which uses madvise(DONTNEED) aggressively, is also included (#ifdefed out). Bug 5567332 Change-Id: I7663ae7d15d0aaa8158deed5e331bf05333da6bb
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.cpp')
0 files changed, 0 insertions, 0 deletions