title: How to deallocate memory in Java?
body: <p>In order to reduce <code>GC</code>-pressure I need to allocate some amount of off-heap memory as follows:</p>
  
  <pre><code>long sz;
  //...
  long pointer = sun.misc.Unsafe.getUnsafe().allocateMemory(sz);
  </code></pre>
  
  <p>But since it's unavailable for GC, I need to deallocate it later by hands. How? Is it possible to do?</p>