hmm.. I don't quite understand why garbage collection times increase.
Normal GC not claiming soft references will be done even before
reaching the maximum heap size.
As I mentioned before, the target heap or ideal heap size will be used
to determine when to do GC.
and the last time GC (before OOM crash) claims soft references, but
this behavior doesn't seem to increase GC times.
Would you please let me know a bit more details?
Thanks!
On 12월9일, 오전2시29분, Romain Guy <
romain...@android.com> wrote:
> Increasing the maximum heap size would also increase garbage collection
> times and you would have fewer apps resident in memory at the same time,
> thus making app switching potentially slower.
>
>
>
>
>
>
>
>
>
> On Wed, Dec 8, 2010 at 8:17 AM, Jean-Baptiste Queru <
j...@android.com> wrote:
> > That would cause different devices to behave differently for the same
> > app, which is not desirable if there are no other differences between
> > those devices that would cause apps to need different amounts of
> > memory.
>
> > JBQ
>
> > On Wed, Dec 8, 2010 at 12:36 AM, Matt Shin <
matt.s...@gmail.com> wrote:
> > > Hi,
> > > I'd like talk about the heap size limit by dalvik.vm.heapsize system
> > > property.
> > > basically it is a absolute max value related to out-of-mem exception
> > > if an application request more than that.
> > > the question here is why do we set small value like 16 or 24MB ? what
> > > happens if we simply increase to 64MB?
> > > As Dalvik has it's internal soft limit that leads to GC, there is no
> > > waste of heap memory!
> > > Of course there could be an application that utilizes 'soft reference'
> > > as much as Dalvik permits.
> > > But as far as i know, that case is negligible and it is better to
> > > avoid application crash by OOM exception.
> > > What do you think about this?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > > To post to this group, send email to
android-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> >
android-platfo...@googlegroups.com<android-platform%2Bunsubscrib
e...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >
http://groups.google.com/group/android-platform?hl=en.
>
> > --
> > Jean-Baptiste M. "JBQ" Queru
> > Software Engineer, Android Open-Source Project, 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.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to
android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-platfo...@googlegroups.com<android-platform%2Bunsubscrib
e...@googlegroups.com>
> > .
>
romain...@android.com