diff options
author | Barry Hayes <bhayes@google.com> | 2010-02-08 20:46:41 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-02-08 20:46:41 -0800 |
commit | 2dcf1fb9ff3f7a64c0f914c524db146dd8683b6a (patch) | |
tree | 3c6919dafa57eae74c1b844f3ccd525ff4bc6a12 /include | |
parent | 92b25666d96ffbac7959f142eb4cc3d122d1c20b (diff) | |
parent | b17772dcc8ac2acccf658da262edcc303fafcafb (diff) | |
download | system_core-2dcf1fb9ff3f7a64c0f914c524db146dd8683b6a.zip system_core-2dcf1fb9ff3f7a64c0f914c524db146dd8683b6a.tar.gz system_core-2dcf1fb9ff3f7a64c0f914c524db146dd8683b6a.tar.bz2 |
Merge "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')
-rw-r--r-- | include/cutils/mspace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cutils/mspace.h b/include/cutils/mspace.h index 33410c1..e6e4047 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 |