Github user bigdata-memory commented on a diff in the pull request: https://github.com/apache/incubator-mnemonic/pull/74#discussion_r143510796 --- Diff: mnemonic-core/src/main/java/org/apache/mnemonic/VolatileMemAllocator.java --- @@ -158,6 +159,19 @@ public long expand(long size) { return ret; } + @Override + public long shrink(long size) { + long ret = 0L; + if (null != m_features) { + if (m_features.contains(SHRINKABLE)) { + return m_vmasvc.adjustCapacity(m_nid, (-1) * size); --- End diff -- Please assign the result to ret variable
---