
23 Apr
2009
23 Apr
'09
3:58 p.m.
Yuriy Taraday wrote:
The JNI API guarantees that jobject is just a simple reference (weak or strong) to an object, without any overhead, all garbage collector stuff (reference counting etc.) must be performed explicitly with a corresponding calls. So jobject isn't larger than a pointer and it's safe to pass it by value.
Fine.
We are currently doing a whole pass through the Java interface glue code: this change will be included among others. I will notify you when we are ready, so that you will be able to give it a try.
Cheers, Enea Zaffanella.