Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9181

Fix the comment in JNI libraries regarding weak reference and GC

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            vinodkone Vinod Kone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: