< prev index next >

src/share/vm/memory/genOopClosures.hpp

Print this page
rev 7854 : 8073387: Move VerifyOopClosures out from genOopClosures.hpp

*** 1,7 **** /* ! * Copyright (c) 2001, 2014, 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) 2001, 2015, 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.
*** 187,204 **** virtual void do_oop(narrowOop* p); inline void do_oop_nv(oop* p); inline void do_oop_nv(narrowOop* p); }; - class VerifyOopClosure: public OopClosure { - protected: - template <class T> inline void do_oop_work(T* p) { - oop obj = oopDesc::load_decode_heap_oop(p); - guarantee(obj->is_oop_or_null(), err_msg("invalid oop: " INTPTR_FORMAT, p2i((oopDesc*) obj))); - } - public: - virtual void do_oop(oop* p); - virtual void do_oop(narrowOop* p); - static VerifyOopClosure verify_oop; - }; - #endif // SHARE_VM_MEMORY_GENOOPCLOSURES_HPP --- 187,192 ----
< prev index next >