aboutsummaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorBarry Hayes <bhayes@google.com>2010-01-06 10:59:39 -0800
committerCarl Shapiro <cshapiro@google.com>2010-02-09 10:23:25 -0800
commit17128f6e433afae326a57a7961499f529f532c61 (patch)
tree9a0511006fb27c86569f0a7f520002064df6dd6f /include/cutils
parent32f51664c8c44b8a4ab357e34590deb62c582c7c (diff)
downloadsystem_core-17128f6e433afae326a57a7961499f529f532c61.tar.gz
system_core-17128f6e433afae326a57a7961499f529f532c61.tar.bz2
system_core-17128f6e433afae326a57a7961499f529f532c61.zip
Break out create_contiguous_mspace_with_base
This routine allows creating a contiguous mspace from raw mapped memory. In turn, this will enable preallocation of the 3 heap spaces, which will help remembered sets and zygote/app checks given pointer values.
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/mspace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cutils/mspace.h b/include/cutils/mspace.h
index 33410c10..e6e40472 100644
--- a/include/cutils/mspace.h
+++ b/include/cutils/mspace.h
@@ -80,6 +80,12 @@ mspace create_contiguous_mspace(size_t starting_capacity, size_t max_capacity,
mspace create_contiguous_mspace_with_name(size_t starting_capacity,
size_t max_capacity, int locked, const char *name);
+/*
+ Identical to create_contiguous_mspace, but uses previously mapped memory.
+*/
+mspace create_contiguous_mspace_with_base(size_t starting_capacity,
+ size_t max_capacity, int locked, void *base);
+
size_t destroy_contiguous_mspace(mspace msp);
#endif