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

Mon, 12 Aug 2019 18:30:40 +0300

author
apetushkov
date
Mon, 12 Aug 2019 18:30:40 +0300
changeset 9858
b985cbb00e68
parent 6982
4c1b88a53c74
permissions
-rw-r--r--

8223147: JFR Backport
8199712: Flight Recorder
8203346: JFR: Inconsistent signature of jfr_add_string_constant
8195817: JFR.stop should require name of recording
8195818: JFR.start should increase autogenerated name by one
8195819: Remove recording=x from jcmd JFR.check output
8203921: JFR thread sampling is missing fixes from JDK-8194552
8203929: Limit amount of data for JFR.dump
8203664: JFR start failure after AppCDS archive created with JFR StartFlightRecording
8003209: JFR events for network utilization
8207392: [PPC64] Implement JFR profiling
8202835: jfr/event/os/TestSystemProcess.java fails on missing events
Summary: Backport JFR from JDK11. Initial integration
Reviewed-by: neugens

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