/** * Calculate the offset of an address from the base of the heap. * @param The address which require the offset for. * @return The offset from heap base. */ uintptr_t MM_HeapVirtualMemory::calculateOffsetFromHeapBase(void* address) { MM_GCExtensionsBase* extensions = MM_GCExtensionsBase::getExtensions(_omrVM); MM_MemoryManager* memoryManager = extensions->memoryManager; return memoryManager->calculateOffsetFromHeapBase(&_vmemHandle, address); }