transient java object instance from jvm through jni?
Hello, All
Sometimes I want manage the memory take by object instance,
for example, If I want to design a cache which cache a huge number object.
Then, there may two problems:
1, May occur OutOfMemory error.
2, I want like to manually reclaim the memory take by the cached object,
not by gc, because it may take a little time to check the reference for gc.
Just as you know, there is keywordtransient for serialization.
I want know if some same mechanism for object instance creating or release, managing memory by jni, or by some other way?

