title: GetByteArrayElements uses direct memory?
body: <p>I got a Direct Memory OOM in my program.</p>
  
  <p>The program used <code>ByteBuffer.allocateDirect()</code> in java, and C++ side writes data into that buffer.
  But when I tried to change the <code>ByteBuffer.allocateDirect()</code> to <code>ByteBuffer.allocate()</code> and using <code>GetByteArrayElements()</code> to write the data. I still got the same Direct Memory OOM.</p>
  
  <p>I'm confused, is that <code>GetByteArrayElements()</code> copys the array using direct memory?</p>
  
  <p>Thanks so much.</p>