8358283: Inconsistent failure mode for MetaspaceObj::operator new(size_t, MemTag)
Reviewed-by: kvn, kbarrett
This commit is contained in:
parent
faf19abd31
commit
01f01b6f7b
@ -86,7 +86,7 @@ void* MetaspaceObj::operator new(size_t size, ClassLoaderData* loader_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This is used for allocating training data. We are allocating training data in many cases where a GC cannot be triggered.
|
// 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);
|
void* p = AllocateHeap(size, flags, CALLER_PC);
|
||||||
memset(p, 0, size);
|
memset(p, 0, size);
|
||||||
return p;
|
return p;
|
||||||
|
@ -358,7 +358,7 @@ class MetaspaceObj {
|
|||||||
size_t word_size,
|
size_t word_size,
|
||||||
Type type) throw();
|
Type type) throw();
|
||||||
// This is used for allocating training data. We are allocating training data in many cases where a GC cannot be triggered.
|
// This is used for allocating training data. We are allocating training data in many cases where a GC cannot be triggered.
|
||||||
void* operator new(size_t size, MemTag flags) throw();
|
void* operator new(size_t size, MemTag flags);
|
||||||
void operator delete(void* p) = delete;
|
void operator delete(void* p) = delete;
|
||||||
|
|
||||||
// Declare a *static* method with the same signature in any subclass of MetaspaceObj
|
// Declare a *static* method with the same signature in any subclass of MetaspaceObj
|
||||||
|
Loading…
x
Reference in New Issue
Block a user