예제 #1
0
bool dvmHeapSourceStartupAfterZygote()
{
    if(lowmem) {
        return gDvm.concurrentMarkSweep ? gcDaemonStartup() : true;
    }
    else {
        HeapSource* hs    = gHs;

        hs->softLimit=SIZE_MAX;
        hs->heaps[0].concurrentStartBytes = mspace_footprint(hs->heaps[0].msp) - concurrentStart;
        return gDvm.concurrentMarkSweep ? gcDaemonStartup() : true;
    }
}
bool dvmHeapSourceStartupAfterZygote()
{
    //For each new application forked, we need to reset softLimit and
    //concurrentStartBytes to be the correct expected value, not the one
    //inherit from Zygote
    HeapSource *hs = gHs;
    hs->softLimit=SIZE_MAX;
    hs->heaps[0].concurrentStartBytes = mspace_footprint(hs->heaps[0].msp) - concurrentStart;
    return gDvm.concurrentMarkSweep ? gcDaemonStartup() : true;
}
예제 #3
0
bool dvmHeapSourceStartupAfterZygote()
{
    return gDvm.concurrentMarkSweep ? gcDaemonStartup() : true;
}