Forcing the GC to collect JNI proxy objects
Posted
by SyBer
on Stack Overflow
See other posts from Stack Overflow
or by SyBer
Published on 2010-03-09T22:11:08Z
Indexed on
2010/03/15
22:29 UTC
Read the original article
Hit count: 579
Hi.
While I do my best to clean JNI objects to free native memory in the end of the usage, there are still some that hang around for a long time, wasting system native memory.
Is there any way to force the GC to give priority in collection of these JNI proxies?
I mean is there a way to cause GC to concentrate on a particular kind of object, namely the JNI proxies?
Thanks.
© Stack Overflow or respective owner