Blocks :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
After discussions around possible weak reference object resurrection through Unsafe::getObjectVolatile it was realized that weak JNI handles suffer from the same problem. Code dereferencing a jweak must ensure that the oop is marked by SATB since the jweak may have been the only remaining reference to the object. Unfortunately the JNI spec allows jweak parameters in place of any jobject parameter to any JNI entry point so we would either need to be able to detect a jweak parameter or unconditionally ensure that all resolved objects are marked.
|