annotate src/hotspot/share/jfr/support/jfrEventClass.hpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents caf115bb98ad
children
rev   line source
egahlin@50662 1 /*
coleenp@54304 2 * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
egahlin@50662 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
egahlin@50662 4 *
egahlin@50662 5 * This code is free software; you can redistribute it and/or modify it
egahlin@50662 6 * under the terms of the GNU General Public License version 2 only, as
egahlin@50662 7 * published by the Free Software Foundation.
egahlin@50662 8 *
egahlin@50662 9 * This code is distributed in the hope that it will be useful, but WITHOUT
egahlin@50662 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
egahlin@50662 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
egahlin@50662 12 * version 2 for more details (a copy is included in the LICENSE file that
egahlin@50662 13 * accompanied this code).
egahlin@50662 14 *
egahlin@50662 15 * You should have received a copy of the GNU General Public License version
egahlin@50662 16 * 2 along with this work; if not, write to the Free Software Foundation,
egahlin@50662 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
egahlin@50662 18 *
egahlin@50662 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
egahlin@50662 20 * or visit www.oracle.com if you need additional information or have any
egahlin@50662 21 * questions.
egahlin@50662 22 *
egahlin@50662 23 */
egahlin@50662 24
coleenp@54304 25 #ifndef SHARE_JFR_SUPPORT_JFREVENTCLASS_HPP
coleenp@54304 26 #define SHARE_JFR_SUPPORT_JFREVENTCLASS_HPP
egahlin@50662 27
egahlin@50662 28 #include "jni.h"
egahlin@50662 29 #include "memory/allocation.hpp"
egahlin@50662 30
egahlin@50662 31 class Klass;
egahlin@50662 32
egahlin@50662 33 //
egahlin@50662 34 // For convenient access to the jdk.jfr.Event klass hierarchy.
egahlin@50662 35 //
egahlin@50662 36 class JdkJfrEvent : AllStatic {
egahlin@50662 37 public:
egahlin@50662 38 // jdk.jfr.Event
egahlin@50662 39 static bool is(const Klass* k);
egahlin@50662 40 static bool is(const jclass jc);
egahlin@50662 41 static void tag_as(const Klass* k);
egahlin@50662 42
egahlin@50662 43 // jdk.jfr.Event subklasses
egahlin@50662 44 static bool is_subklass(const Klass* k);
egahlin@50662 45 static bool is_subklass(const jclass jc);
egahlin@50662 46 static void tag_as_subklass(const Klass* k);
egahlin@50662 47 static void tag_as_subklass(const jclass jc);
egahlin@50662 48
egahlin@50662 49 // jdk.jfr.Event hierarchy
egahlin@50662 50 static bool is_a(const Klass* k);
egahlin@50662 51 static bool is_a(const jclass jc);
egahlin@50662 52
egahlin@50662 53 // klasses that host a jdk.jfr.Event
egahlin@50662 54 static bool is_host(const Klass* k);
egahlin@50662 55 static bool is_host(const jclass jc);
egahlin@50662 56 static void tag_as_host(const Klass* k);
egahlin@50662 57 static void tag_as_host(const jclass jc);
egahlin@50662 58
egahlin@50662 59 // in the set of classes made visible to java
egahlin@50662 60 static bool is_visible(const Klass* k);
egahlin@50662 61 static bool is_visible(const jclass jc);
egahlin@50662 62 };
egahlin@50662 63
coleenp@54304 64 #endif // SHARE_JFR_SUPPORT_JFREVENTCLASS_HPP