1 /* 2 * Copyright (c) 2016, 2018, 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_VM_JFR_CHECKPOINT_CONSTANT_JFRCONSTANT_HPP 26 #define SHARE_VM_JFR_CHECKPOINT_CONSTANT_JFRCONSTANT_HPP 27 28 #include "jfr/metadata/jfrConstantSerializer.hpp" 29 30 class JfrThreadConstantSet : public JfrConstantSerializer { 31 public: 32 void write_constants(JfrCheckpointWriter& writer); 33 }; 34 35 class JfrThreadGroupConstant : public JfrConstantSerializer { 36 public: 37 void write_constants(JfrCheckpointWriter& writer); 38 }; 39 40 class ClassUnloadConstantSet : public JfrConstantSerializer { 41 public: 42 void write_constants(JfrCheckpointWriter& writer); 43 }; 44 45 class FlagValueOriginConstant : public JfrConstantSerializer { 46 public: 47 void write_constants(JfrCheckpointWriter& writer); 48 }; 49 50 class MonitorInflateCauseConstant : public JfrConstantSerializer { 51 public: 52 void write_constants(JfrCheckpointWriter& writer); 53 }; 54 55 class GCCauseConstant : public JfrConstantSerializer { 56 public: 57 void write_constants(JfrCheckpointWriter& writer); 58 }; 59 60 class GCNameConstant : public JfrConstantSerializer { 61 public: 62 void write_constants(JfrCheckpointWriter& writer); 63 }; 64 65 class GCWhenConstant : public JfrConstantSerializer { 66 public: 67 void write_constants(JfrCheckpointWriter& writer); 68 }; 69 70 class G1HeapRegionTypeConstant : public JfrConstantSerializer { 71 public: 72 void write_constants(JfrCheckpointWriter& writer); 73 }; 74 75 class GCThresholdUpdaterConstant : public JfrConstantSerializer { 76 public: 77 void write_constants(JfrCheckpointWriter& writer); 78 }; 79 80 class MetadataTypeConstant : public JfrConstantSerializer { 81 public: 82 void write_constants(JfrCheckpointWriter& writer); 83 }; 84 85 class MetaspaceObjTypeConstant : public JfrConstantSerializer { 86 public: 87 void write_constants(JfrCheckpointWriter& writer); 88 }; 89 90 class G1YCTypeConstant : public JfrConstantSerializer { 91 public: 92 void write_constants(JfrCheckpointWriter& writer); 93 }; 94 95 class ReferenceTypeConstant : public JfrConstantSerializer { 96 public: 97 void write_constants(JfrCheckpointWriter& writer); 98 }; 99 100 class NarrowOopModeConstant : public JfrConstantSerializer { 101 public: 102 void write_constants(JfrCheckpointWriter& writer); 103 }; 104 105 class CompilerPhaseTypeConstant : public JfrConstantSerializer { 106 public: 107 void write_constants(JfrCheckpointWriter& writer); 108 }; 109 110 class CodeBlobTypeConstant : public JfrConstantSerializer { 111 public: 112 void write_constants(JfrCheckpointWriter& writer); 113 }; 114 115 class VMOperationTypeConstant : public JfrConstantSerializer { 116 public: 117 void write_constants(JfrCheckpointWriter& writer); 118 }; 119 120 class ConstantSet : public JfrConstantSerializer { 121 public: 122 void write_constants(JfrCheckpointWriter& writer); 123 }; 124 125 class ThreadStateConstant : public JfrConstantSerializer { 126 public: 127 void write_constants(JfrCheckpointWriter& writer); 128 }; 129 130 class JfrThreadConstant : public JfrConstantSerializer { 131 private: 132 JavaThread* _thread; 133 public: 134 JfrThreadConstant(JavaThread* jt) : _thread(jt) {} 135 void write_constants(JfrCheckpointWriter& writer); 136 }; 137 138 #endif // SHARE_VM_JFR_CHECKPOINT_CONSTANT_JFRCONSTANT_HPP