Loading include/cutils/mspace.h +5 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,11 @@ 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); /* Returns the position of the "break" within the given mspace. */ void *contiguous_mspace_sbrk0(mspace msp); #endif /* Loading libcutils/mspace.c +12 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,16 @@ size_t destroy_contiguous_mspace(mspace msp) { } return 0; } void *contiguous_mspace_sbrk0(mspace msp) { struct mspace_contig_state *cs; mstate ms; const unsigned int pagesize = PAGESIZE; ms = (mstate)msp; cs = (struct mspace_contig_state *)((uintptr_t)ms & ~(pagesize-1)); assert(cs->magic == CONTIG_STATE_MAGIC); assert(cs->m == ms); return cs->brk; } #endif rootdir/init.rc +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ loglevel 3 export EXTERNAL_STORAGE /mnt/sdcard export ASEC_MOUNTPOINT /mnt/asec export LOOP_MOUNTPOINT /mnt/obb export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar 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 # Backward compatibility symlink /system/etc /etc Loading Loading
include/cutils/mspace.h +5 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,11 @@ 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); /* Returns the position of the "break" within the given mspace. */ void *contiguous_mspace_sbrk0(mspace msp); #endif /* Loading
libcutils/mspace.c +12 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,16 @@ size_t destroy_contiguous_mspace(mspace msp) { } return 0; } void *contiguous_mspace_sbrk0(mspace msp) { struct mspace_contig_state *cs; mstate ms; const unsigned int pagesize = PAGESIZE; ms = (mstate)msp; cs = (struct mspace_contig_state *)((uintptr_t)ms & ~(pagesize-1)); assert(cs->magic == CONTIG_STATE_MAGIC); assert(cs->m == ms); return cs->brk; } #endif
rootdir/init.rc +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ loglevel 3 export EXTERNAL_STORAGE /mnt/sdcard export ASEC_MOUNTPOINT /mnt/asec export LOOP_MOUNTPOINT /mnt/obb export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar 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 # Backward compatibility symlink /system/etc /etc Loading