title: Are `malloc` and `free` Java NDK Wrap the only way to overcome automatic recycling with Android?
body: <p>Are <code>malloc</code> and <code>free</code> Java NDK Wrap the only way to overcome automatic recycling with Android?</p>
  
  <pre><code>inline jlong Java_edu_gnu_Native_malloc(jint size) {
      return (jlong)malloc(size);
  }
  
  inline void Java_edu_gnu_Native_free(jlong pointer) {
      free((void*)pointer);
  }
  </code></pre>