Vinod Kone created MESOS-9181:
---------------------------------

             Summary: Fix the comment in JNI libraries regarding weak reference 
and GC
                 Key: MESOS-9181
                 URL: https://issues.apache.org/jira/browse/MESOS-9181
             Project: Mesos
          Issue Type: Documentation
            Reporter: Vinod Kone


Our JNI libraries for MesosSchedulerDriver, v0Mesos and v1Mesos all use weak 
global references to the underlying Java objects, but they incorrectly state 
that this will prevent JVM from GC'ing it. We need to fix these coments.

e.g., 
[https://github.com/apache/mesos/blob/master/src/java/jni/org_apache_mesos_v1_scheduler_V1Mesos.cpp#L213]

 

See the JNI spec for details: 
[https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html#weak]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to