--- old/src/hotspot/share/memory/allocation.cpp 2018-01-15 16:24:03.980409756 -0800 +++ new/src/hotspot/share/memory/allocation.cpp 2018-01-15 16:24:03.592395058 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,6 +37,9 @@ #include "services/memTracker.hpp" #include "utilities/ostream.hpp" +void* MetaspaceObj::_shared_metaspace_base = NULL; +void* MetaspaceObj::_shared_metaspace_top = NULL; + void* StackObj::operator new(size_t size) throw() { ShouldNotCallThis(); return 0; } void StackObj::operator delete(void* p) { ShouldNotCallThis(); } void* StackObj::operator new [](size_t size) throw() { ShouldNotCallThis(); return 0; } @@ -54,10 +57,6 @@ return Metaspace::allocate(loader_data, word_size, type, THREAD); } -bool MetaspaceObj::is_shared() const { - return MetaspaceShared::is_in_shared_space(this); -} - bool MetaspaceObj::is_metaspace_object() const { return Metaspace::contains((void*)this); }