--- old/src/hotspot/share/memory/metaspace.cpp 2018-01-15 16:24:08.936597500 -0800 +++ new/src/hotspot/share/memory/metaspace.cpp 2018-01-15 16:24:08.528582044 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -4070,7 +4070,7 @@ } bool Metaspace::contains(const void* ptr) { - if (UseSharedSpaces && MetaspaceShared::is_in_shared_space(ptr)) { + if (MetaspaceShared::is_in_shared_metaspace(ptr)) { return true; } return contains_non_shared(ptr);