1 /*
  2  * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #ifndef SHARE_JFR_RECORDER_CHECKPOINT_TYPES_JFRTYPE_HPP
 26 #define SHARE_JFR_RECORDER_CHECKPOINT_TYPES_JFRTYPE_HPP
 27 
 28 #include "jfr/metadata/jfrSerializer.hpp"
 29 
 30 class FlagValueOriginConstant : public JfrSerializer {
 31  public:
 32   void serialize(JfrCheckpointWriter& writer);
 33 };
 34 
 35 class MonitorInflateCauseConstant : public JfrSerializer {
 36  public:
 37   void serialize(JfrCheckpointWriter& writer);
 38 };
 39 
 40 class GCCauseConstant : public JfrSerializer {
 41  public:
 42   void serialize(JfrCheckpointWriter& writer);
 43 };
 44 
 45 class GCNameConstant : public JfrSerializer {
 46  public:
 47   void serialize(JfrCheckpointWriter& writer);
 48 };
 49 
 50 class GCWhenConstant : public JfrSerializer {
 51  public:
 52   void serialize(JfrCheckpointWriter& writer);
 53 };
 54 
 55 class GCThresholdUpdaterConstant : public JfrSerializer {
 56  public:
 57   void serialize(JfrCheckpointWriter& writer);
 58 };
 59 
 60 class MetadataTypeConstant : public JfrSerializer {
 61  public:
 62   void serialize(JfrCheckpointWriter& writer);
 63 };
 64 
 65 class MetaspaceObjectTypeConstant : public JfrSerializer {
 66  public:
 67   void serialize(JfrCheckpointWriter& writer);
 68 };
 69 
 70 class ReferenceTypeConstant : public JfrSerializer {
 71  public:
 72   void serialize(JfrCheckpointWriter& writer);
 73 };
 74 
 75 class NarrowOopModeConstant : public JfrSerializer {
 76  public:
 77   void serialize(JfrCheckpointWriter& writer);
 78 };
 79 
 80 class CodeBlobTypeConstant : public JfrSerializer {
 81  public:
 82   void serialize(JfrCheckpointWriter& writer);
 83 };
 84 
 85 class VMOperationTypeConstant : public JfrSerializer {
 86  public:
 87   void serialize(JfrCheckpointWriter& writer);
 88 };
 89 
 90 class JfrThreadConstantSet : public JfrSerializer {
 91  public:
 92   void serialize(JfrCheckpointWriter& writer);
 93 };
 94 
 95 class JfrThreadGroupConstant : public JfrSerializer {
 96  public:
 97   void serialize(JfrCheckpointWriter& writer);
 98 };
 99 
100 class ThreadStateConstant : public JfrSerializer {
101  public:
102   void serialize(JfrCheckpointWriter& writer);
103 };
104 
105 class JfrThreadConstant : public JfrSerializer {
106  private:
107   Thread* _thread;
108   traceid _tid;
109   oop _vthread;
110  public:
111   JfrThreadConstant(Thread* t, traceid tid, oop vthread = NULL) : _thread(t), _tid(tid), _vthread(vthread) {}
112   void serialize(JfrCheckpointWriter& writer);
113 };
114 
115 class BytecodeConstant : public JfrSerializer {
116  public:
117   void serialize(JfrCheckpointWriter& writer);
118 };
119 
120 class CompilerTypeConstant : public JfrSerializer {
121  public:
122   void serialize(JfrCheckpointWriter& writer);
123 };
124 
125 #endif // SHARE_JFR_RECORDER_CHECKPOINT_TYPES_JFRTYPE_HPP