mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8021954: VM SIGSEGV during classloading on MacOS; hs_err_pid file produced
Declare all user-defined operator new()s within Hotspot code with the empty throw() exception specification Reviewed-by: coleenp, twisti, dholmes, hseigel, dcubed, kvn, ccheung
This commit is contained in:
parent
399a8b8d3f
commit
fca9e37c80
42 changed files with 149 additions and 148 deletions
|
@ -41,19 +41,19 @@ Symbol::Symbol(const u1* name, int length, int refcount) {
|
|||
}
|
||||
}
|
||||
|
||||
void* Symbol::operator new(size_t sz, int len, TRAPS) {
|
||||
void* Symbol::operator new(size_t sz, int len, TRAPS) throw() {
|
||||
int alloc_size = size(len)*HeapWordSize;
|
||||
address res = (address) AllocateHeap(alloc_size, mtSymbol);
|
||||
return res;
|
||||
}
|
||||
|
||||
void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) {
|
||||
void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) throw() {
|
||||
int alloc_size = size(len)*HeapWordSize;
|
||||
address res = (address)arena->Amalloc(alloc_size);
|
||||
return res;
|
||||
}
|
||||
|
||||
void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) {
|
||||
void* Symbol::operator new(size_t sz, int len, ClassLoaderData* loader_data, TRAPS) throw() {
|
||||
address res;
|
||||
int alloc_size = size(len)*HeapWordSize;
|
||||
res = (address) Metaspace::allocate(loader_data, size(len), true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue