summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Carlstrom2010-08-04 17:45:52 -0500
committerBrian Carlstrom2010-08-04 17:45:52 -0500
commitf2af88e81af5efb2d585963507f798d5a8b93d67 (patch)
tree750f41a5a32dc03f7006376103ae2bae04291636
parent5a0adf95b1170d3d9ec91b0106662cd17514f0e4 (diff)
downloadplatform-system-core-f2af88e81af5efb2d585963507f798d5a8b93d67.tar.gz
platform-system-core-f2af88e81af5efb2d585963507f798d5a8b93d67.tar.xz
platform-system-core-f2af88e81af5efb2d585963507f798d5a8b93d67.zip
Tracking merge of dalvik-dev to gingerbread
git cherry-pick --no-commit b99a099c git cherry-pick --no-commit 9811671e023ceb82029040f7acf599013c773e6b git cherry-pick --no-commit d0645bf0cc76ef7be11cf77a8e1995233a1972e4 Change-Id: Ie70fecaeaba97a25f114cd2717e381b5107533b1
-rw-r--r--include/cutils/mspace.h5
-rw-r--r--libcutils/mspace.c12
-rw-r--r--rootdir/init.rc2
3 files changed, 18 insertions, 1 deletions
diff --git a/include/cutils/mspace.h b/include/cutils/mspace.h
index e6e404722..93fe48eed 100644
--- a/include/cutils/mspace.h
+++ b/include/cutils/mspace.h
@@ -87,6 +87,11 @@ mspace create_contiguous_mspace_with_base(size_t starting_capacity,
87 size_t max_capacity, int locked, void *base); 87 size_t max_capacity, int locked, void *base);
88 88
89size_t destroy_contiguous_mspace(mspace msp); 89size_t destroy_contiguous_mspace(mspace msp);
90
91/*
92 Returns the position of the "break" within the given mspace.
93*/
94void *contiguous_mspace_sbrk0(mspace msp);
90#endif 95#endif
91 96
92/* 97/*
diff --git a/libcutils/mspace.c b/libcutils/mspace.c
index 63b199d5f..6d3b35c84 100644
--- a/libcutils/mspace.c
+++ b/libcutils/mspace.c
@@ -271,4 +271,16 @@ size_t destroy_contiguous_mspace(mspace msp) {
271 } 271 }
272 return 0; 272 return 0;
273} 273}
274
275void *contiguous_mspace_sbrk0(mspace msp) {
276 struct mspace_contig_state *cs;
277 mstate ms;
278 const unsigned int pagesize = PAGESIZE;
279
280 ms = (mstate)msp;
281 cs = (struct mspace_contig_state *)((uintptr_t)ms & ~(pagesize-1));
282 assert(cs->magic == CONTIG_STATE_MAGIC);
283 assert(cs->m == ms);
284 return cs->brk;
285}
274#endif 286#endif
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 4a88513e3..1e3e2d286 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -17,7 +17,7 @@ loglevel 3
17 export EXTERNAL_STORAGE /mnt/sdcard 17 export EXTERNAL_STORAGE /mnt/sdcard
18 export ASEC_MOUNTPOINT /mnt/asec 18 export ASEC_MOUNTPOINT /mnt/asec
19 export LOOP_MOUNTPOINT /mnt/obb 19 export LOOP_MOUNTPOINT /mnt/obb
20 export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar 20 export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
21 21
22# Backward compatibility 22# Backward compatibility
23 symlink /system/etc /etc 23 symlink /system/etc /etc