0 Replies Latest reply: Mar 1, 2013 7:17 AM by 994207 RSS

    Does NewDirectByteBuffer() around malloc()'ed memory make the GC care

    994207
      about freeing the malloc()'ed memory?

      env->NewDirectByteBuffer(b, len); where b is malloc'ed memory.

      I want to free it myself, so I would appreciate it if the JVM only free'd whatever wrapper the NewDirectByteBuffer creates, but not the memory itself.