Indeed, the VM is configured to fail allocations beyond 16MB. That includes regular object allocations, as well as the back-end storage for bitmaps (and that list might not be exhaustive), and I don't know how the fragmentation is taken into account, but doesn't include all the memory allocated by native code which can currently go beyond the 16MB limit.
JBQ On Fri, Mar 20, 2009 at 8:01 PM, e13...@gmail.com <e13...@gmail.com> wrote: > > It is said android VM can't allocate more than 16MB memory,I'm not > sure if it includes the memory allocated in native code and hope > someone can clarify. > > I also met problem with exception "out of memory" in java application, > I wonder is there usefull way to know how much memory is allocated by > VM? > > > -- Jean-Baptiste M. "JBQ" Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---