--- old/src/hotspot/share/oops/method.cpp 2018-01-15 16:24:14.696815703 -0800 +++ new/src/hotspot/share/oops/method.cpp 2018-01-15 16:24:14.276799792 -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 @@ -2180,7 +2180,7 @@ } else if ((intptr_t(this) & (wordSize-1)) != 0) { // Quick sanity check on pointer. return false; - } else if (MetaspaceShared::is_in_shared_space(this)) { + } else if (this->is_shared()) { return MetaspaceShared::is_valid_shared_method(this); } else if (Metaspace::contains_non_shared(this)) { return has_method_vptr((const void*)this);