src/share/vm/memory/iterator.inline.hpp

Tue, 16 Feb 2016 21:42:29 +0000

author
poonam
date
Tue, 16 Feb 2016 21:42:29 +0000
changeset 8308
6acf14e730dd
parent 6982
4c1b88a53c74
permissions
-rw-r--r--

8072725: Provide more granular levels for GC verification
Summary: Add option VerifySubSet to selectively verify the memory sub-systems
Reviewed-by: kevinw, jmasa

stefank@6982 1 /*
stefank@6982 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
stefank@6982 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
stefank@6982 4 *
stefank@6982 5 * This code is free software; you can redistribute it and/or modify it
stefank@6982 6 * under the terms of the GNU General Public License version 2 only, as
stefank@6982 7 * published by the Free Software Foundation.
stefank@6982 8 *
stefank@6982 9 * This code is distributed in the hope that it will be useful, but WITHOUT
stefank@6982 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
stefank@6982 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
stefank@6982 12 * version 2 for more details (a copy is included in the LICENSE file that
stefank@6982 13 * accompanied this code).
stefank@6982 14 *
stefank@6982 15 * You should have received a copy of the GNU General Public License version
stefank@6982 16 * 2 along with this work; if not, write to the Free Software Foundation,
stefank@6982 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
stefank@6982 18 *
stefank@6982 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
stefank@6982 20 * or visit www.oracle.com if you need additional information or have any
stefank@6982 21 * questions.
stefank@6982 22 *
stefank@6982 23 */
stefank@6982 24
stefank@6982 25 #ifndef SHARE_VM_MEMORY_ITERATOR_INLINE_HPP
stefank@6982 26 #define SHARE_VM_MEMORY_ITERATOR_INLINE_HPP
stefank@6982 27
stefank@6982 28 #include "classfile/classLoaderData.hpp"
stefank@6982 29 #include "memory/iterator.hpp"
stefank@6982 30 #include "oops/klass.hpp"
stefank@6982 31 #include "utilities/debug.hpp"
stefank@6982 32
stefank@6982 33 inline void MetadataAwareOopClosure::do_class_loader_data(ClassLoaderData* cld) {
stefank@6982 34 assert(_klass_closure._oop_closure == this, "Must be");
stefank@6982 35
stefank@6982 36 bool claim = true; // Must claim the class loader data before processing.
stefank@6982 37 cld->oops_do(_klass_closure._oop_closure, &_klass_closure, claim);
stefank@6982 38 }
stefank@6982 39
stefank@6982 40 inline void MetadataAwareOopClosure::do_klass_nv(Klass* k) {
stefank@6982 41 ClassLoaderData* cld = k->class_loader_data();
stefank@6982 42 do_class_loader_data(cld);
stefank@6982 43 }
stefank@6982 44
stefank@6982 45 inline void MetadataAwareOopClosure::do_klass(Klass* k) { do_klass_nv(k); }
stefank@6982 46
stefank@6982 47 #endif // SHARE_VM_MEMORY_ITERATOR_INLINE_HPP

mercurial