--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
Tim
Hi,
Try calling jniEnv->DeleteLocalRef(retJstring);
VM does not automaticaly delete local reference of your new object.
Also after every GetStringChars, when yo don't need string buffer , call ReleaseStringChars.
On Oct 11, 2010 9:17 PM, "Dianne Hackborn" <hac...@android.com> wrote:
It is probably because it is a native allocation, the Typeface object holds a reference to that, the Java VM doesn't know about it, so it doesn't think it needs to GC until well after too much memory has been allocated.
On Sun, Oct 10, 2010 at 6:02 PM, JYA <jyav...@gmail.com> wrote:
>
> Well.
>
> Good news is that ...
--
Dianne Hackborn
Android framework engineer
hac...@android.com
Note: please don't send private ...
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To po...
A lot of Android is implemented in native; I'm sure Dianne means that the allocation INSIDE the Typeface is done in native. So Java only knows about (probably) a series of small allocations (that each internally reference a larger native allocation), and therefore doesn't realize that GC should be run ASAP.
Kind of a worry though that I could so easily make my HTC desirereboot simply by allocating memory for a font ..