mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8244489: Zero and minimal VM build failure after JDK-8241071 (MetaspaceShared::symbol_space_alloc is undefined)
Reviewed-by: dholmes
This commit is contained in:
parent
0c0d485c37
commit
317bd88e33
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ Symbol::Symbol(const u1* name, int length, int refcount) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void* Symbol::operator new(size_t sz, int len) throw() {
|
void* Symbol::operator new(size_t sz, int len) throw() {
|
||||||
|
#if INCLUDE_CDS
|
||||||
if (DumpSharedSpaces) {
|
if (DumpSharedSpaces) {
|
||||||
// To get deterministic output from -Xshare:dump, we ensure that Symbols are allocated in
|
// To get deterministic output from -Xshare:dump, we ensure that Symbols are allocated in
|
||||||
// increasing addresses. When the symbols are copied into the archive, we preserve their
|
// increasing addresses. When the symbols are copied into the archive, we preserve their
|
||||||
|
@ -71,6 +72,7 @@ void* Symbol::operator new(size_t sz, int len) throw() {
|
||||||
DEBUG_ONLY(last = p);
|
DEBUG_ONLY(last = p);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
int alloc_size = size(len)*wordSize;
|
int alloc_size = size(len)*wordSize;
|
||||||
address res = (address) AllocateHeap(alloc_size, mtSymbol);
|
address res = (address) AllocateHeap(alloc_size, mtSymbol);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue