well, looking around I found the following in dalvik/vm/init.c:

/* Defaults overridden by -Xms and -Xmx.
 * TODO: base these on a system or application-specific default
 */
gDvm.heapSizeStart = 2 * 1024 * 1024;   // Spec says 16MB; too big for us.
gDvm.heapSizeMax = 16 * 1024 * 1024;    // Spec says 75% physical mem;

I notice that gDvm.heapSizeMax gets passed (directly or indirectly) to
the rest of the vm code.
Also, are the comments mentioned in the code true? Can we avoid the
default limit by passing larger values to the said arguments?

thanks
.

On Sun, Mar 29, 2009 at 10:27 PM, devi prasad <[email protected]> wrote:
> Hi
> Can someone point me to the code that enforces the 16MB heap limit?
> If we want to increase the allowed heap size to say 24MB, what
> additional care should we take so we do not violate other guarantees
> already enforced in the system?
>
> thanks
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to