long size = bootHeap.getSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getSize(); h = h.getNext(); }  size += MemoryBlockManager.getFreeMemory(); return size; }
long size = bootHeap.getSize(); VmAbstractHeap h = firstNormalHeap; while (h != null) { size += h.getSize(); h = h.getNext(); }   size += MemoryBlockManager.getFreeMemory(); return size; }
	public long getTotalMemory() {		long size = bootHeap.getSize();		VmAbstractHeap h = firstHeap;		while (h != null) {			size += h.getSize();			h = h.getNext();		}		//size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr));		size += MemoryBlockManager.getFreeMemory();		return size;	}