< prev index next > src/hotspot/share/memory/allocation.cpp
Print this page
assert(type != ClassType, "class has its own operator new");
return Metaspace::allocate(loader_data, word_size, type, /*use_class_space*/ false);
}
// This is used for allocating training data. We are allocating training data in many cases where a GC cannot be triggered.
- void* MetaspaceObj::operator new(size_t size, MemTag flags) throw() {
+ void* MetaspaceObj::operator new(size_t size, MemTag flags) {
void* p = AllocateHeap(size, flags, CALLER_PC);
memset(p, 0, size);
return p;
}
< prev index next >