< prev index next >

src/hotspot/share/oops/method.cpp

Print this page

*** 1,7 **** /* ! * Copyright (c) 1997, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 2178,2188 **** if (this == NULL) { return false; } else if ((intptr_t(this) & (wordSize-1)) != 0) { // Quick sanity check on pointer. return false; ! } else if (MetaspaceShared::is_in_shared_space(this)) { return MetaspaceShared::is_valid_shared_method(this); } else if (Metaspace::contains_non_shared(this)) { return has_method_vptr((const void*)this); } else { return false; --- 2178,2188 ---- if (this == NULL) { return false; } else if ((intptr_t(this) & (wordSize-1)) != 0) { // Quick sanity check on pointer. return false; ! } 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); } else { return false;
< prev index next >