The function doesn't try to do GC whenever "externalAllocPossible(hs,
n)" returns false. How about simply moving this call to the beginning
of function "static bool externalAlloc(HeapSource *hs, size_t n, bool
grow)"?

And line 1320 of HeapSource.c (function "static bool
externalAllocPossible(const HeapSource *hs, size_t n)") is
"currentHeapSize = mspace_max_allowed_footprint(heap->msp):". I think
it should be "currentHeapSize = mspace_footprint(heap->msp);". Am I
right?

My 3rd question is: is it appropriate to add "removeAllViews()" in the
following 4 Java files:
frameworks/policies/base/phone/com/android/internal/policy/impl/
AccountUnlockScreen.java
frameworks/policies/base/phone/com/android/internal/policy/impl/
LockScreen.java
frameworks/policies/base/phone/com/android/internal/policy/impl/
SimUnlockScreen.java
frameworks/policies/base/phone/com/android/internal/policy/impl/
UnlockScreen.java


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to