< prev index next >
src/hotspot/share/memory/allocation.inline.hpp
Print this page
*** 103,113 ****
E* MallocArrayAllocator<E>::allocate(size_t length, MEMFLAGS flags) {
return (E*)AllocateHeap(size_for(length), flags);
}
template<class E>
! void MallocArrayAllocator<E>::free(E* addr, size_t /*length*/) {
FreeHeap(addr);
}
template <class E>
bool ArrayAllocator<E>::should_use_malloc(size_t length) {
--- 103,113 ----
E* MallocArrayAllocator<E>::allocate(size_t length, MEMFLAGS flags) {
return (E*)AllocateHeap(size_for(length), flags);
}
template<class E>
! void MallocArrayAllocator<E>::free(E* addr) {
FreeHeap(addr);
}
template <class E>
bool ArrayAllocator<E>::should_use_malloc(size_t length) {
*** 150,160 ****
return new_addr;
}
template<class E>
void ArrayAllocator<E>::free_malloc(E* addr, size_t length) {
! MallocArrayAllocator<E>::free(addr, length);
}
template<class E>
void ArrayAllocator<E>::free_mmap(E* addr, size_t length) {
MmapArrayAllocator<E>::free(addr, length);
--- 150,160 ----
return new_addr;
}
template<class E>
void ArrayAllocator<E>::free_malloc(E* addr, size_t length) {
! MallocArrayAllocator<E>::free(addr);
}
template<class E>
void ArrayAllocator<E>::free_mmap(E* addr, size_t length) {
MmapArrayAllocator<E>::free(addr, length);
< prev index next >