Skip to content
Permalink
Browse files

8244489: Zero and minimal VM build failure after JDK-8241071 (Metaspa…

…ceShared::symbol_space_alloc is undefined)

Reviewed-by: dholmes
  • Loading branch information
DamonFool committed May 6, 2020
1 parent 0c0d485 commit 317bd88e33a91fc2258b81af6df2faf7c04f9892
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/hotspot/share/oops/symbol.cpp
@@ -57,6 +57,7 @@ Symbol::Symbol(const u1* name, int length, int refcount) {
}

void* Symbol::operator new(size_t sz, int len) throw() {
#if INCLUDE_CDS
if (DumpSharedSpaces) {
// 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
@@ -71,6 +72,7 @@ void* Symbol::operator new(size_t sz, int len) throw() {
DEBUG_ONLY(last = p);
return p;
}
#endif
int alloc_size = size(len)*wordSize;
address res = (address) AllocateHeap(alloc_size, mtSymbol);
return res;

0 comments on commit 317bd88

Please sign in to comment.