private void doFreeOffHeapMemoryOnVm(final VM vm, final int numAllocations,
      final int numDestroys) {
    vm.invoke(() -> {
      doFreeOffHeapMemory(numAllocations, numDestroys);
    });
  }
Destroys a number of entries previously allocated.

@param vm a virtual machine
@param numAllocations the number of previous off-heap allocations
@param numDestroys the number of destroys to perform
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java