summaryrefslogtreecommitdiffstats
path: root/src/runtime.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2012-07-20 10:29:05 -0700
committerMathieu Chartier <mathieuc@google.com>2012-07-27 14:30:51 -0700
commitcc236d74772dda5a4161d9bc5f497fd3d956eb87 (patch)
tree2cd44e980357edc5b1a477fb261adb590d34c7c7 /src/runtime.h
parentf1ea6b072b8b473eabf91d1d582fb5966ffea4ba (diff)
downloadart-cc236d74772dda5a4161d9bc5f497fd3d956eb87.zip
art-cc236d74772dda5a4161d9bc5f497fd3d956eb87.tar.gz
art-cc236d74772dda5a4161d9bc5f497fd3d956eb87.tar.bz2
Zygote space / partial collection support.
The zygote space is now created right before zygote fork. This space has new allocations into it disabled, this reduces memory usage since we have more shared pages. Partial collection works by marking all the zygote space -> alloc space references by using a mod-union table and then recursively marking only over the alloc space. Approximate improvements; Deltablue time goes down ~0.5 seconds. Caffeinemark score goes up ~300. System memory usage goes down ~7MB. Change-Id: I198389371d23deacd9b4534f39727eb641786b34
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.h b/src/runtime.h
index b5c3608..c583ab1 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -310,6 +310,7 @@ class Runtime {
void SetStatsEnabled(bool new_state);
void DidForkFromZygote();
+ bool PreZygoteFork();
void EnableMethodTracing(Trace* tracer);
void DisableMethodTracing();