< prev index next >

src/hotspot/share/jfr/recorder/checkpoint/types/jfrType.cpp

Print this page
rev 51152 : [mq]: gcbuildoptionspatch


 171 
 172 void GCNameConstant::serialize(JfrCheckpointWriter& writer) {
 173   static const u4 nof_entries = GCNameEndSentinel;
 174   writer.write_count(nof_entries);
 175   for (u4 i = 0; i < nof_entries; ++i) {
 176     writer.write_key(i);
 177     writer.write(GCNameHelper::to_string((GCName)i));
 178   }
 179 }
 180 
 181 void GCWhenConstant::serialize(JfrCheckpointWriter& writer) {
 182   static const u4 nof_entries = GCWhen::GCWhenEndSentinel;
 183   writer.write_count(nof_entries);
 184   for (u4 i = 0; i < nof_entries; ++i) {
 185     writer.write_key(i);
 186     writer.write(GCWhen::to_string((GCWhen::Type)i));
 187   }
 188 }
 189 
 190 void G1HeapRegionTypeConstant::serialize(JfrCheckpointWriter& writer) {

 191   static const u4 nof_entries = G1HeapRegionTraceType::G1HeapRegionTypeEndSentinel;
 192   writer.write_count(nof_entries);
 193   for (u4 i = 0; i < nof_entries; ++i) {
 194     writer.write_key(i);
 195     writer.write(G1HeapRegionTraceType::to_string((G1HeapRegionTraceType::Type)i));
 196   }

 197 }
 198 
 199 void GCThresholdUpdaterConstant::serialize(JfrCheckpointWriter& writer) {
 200   static const u4 nof_entries = MetaspaceGCThresholdUpdater::Last;
 201   writer.write_count(nof_entries);
 202   for (u4 i = 0; i < nof_entries; ++i) {
 203     writer.write_key(i);
 204     writer.write(MetaspaceGCThresholdUpdater::to_string((MetaspaceGCThresholdUpdater::Type)i));
 205   }
 206 }
 207 
 208 void MetadataTypeConstant::serialize(JfrCheckpointWriter& writer) {
 209   static const u4 nof_entries = Metaspace::MetadataTypeCount;
 210   writer.write_count(nof_entries);
 211   for (u4 i = 0; i < nof_entries; ++i) {
 212     writer.write_key(i);
 213     writer.write(Metaspace::metadata_type_name((Metaspace::MetadataType)i));
 214   }
 215 }
 216 




 171 
 172 void GCNameConstant::serialize(JfrCheckpointWriter& writer) {
 173   static const u4 nof_entries = GCNameEndSentinel;
 174   writer.write_count(nof_entries);
 175   for (u4 i = 0; i < nof_entries; ++i) {
 176     writer.write_key(i);
 177     writer.write(GCNameHelper::to_string((GCName)i));
 178   }
 179 }
 180 
 181 void GCWhenConstant::serialize(JfrCheckpointWriter& writer) {
 182   static const u4 nof_entries = GCWhen::GCWhenEndSentinel;
 183   writer.write_count(nof_entries);
 184   for (u4 i = 0; i < nof_entries; ++i) {
 185     writer.write_key(i);
 186     writer.write(GCWhen::to_string((GCWhen::Type)i));
 187   }
 188 }
 189 
 190 void G1HeapRegionTypeConstant::serialize(JfrCheckpointWriter& writer) {
 191 #if INCLUDE_G1GC
 192   static const u4 nof_entries = G1HeapRegionTraceType::G1HeapRegionTypeEndSentinel;
 193   writer.write_count(nof_entries);
 194   for (u4 i = 0; i < nof_entries; ++i) {
 195     writer.write_key(i);
 196     writer.write(G1HeapRegionTraceType::to_string((G1HeapRegionTraceType::Type)i));
 197   }
 198 #endif
 199 }
 200 
 201 void GCThresholdUpdaterConstant::serialize(JfrCheckpointWriter& writer) {
 202   static const u4 nof_entries = MetaspaceGCThresholdUpdater::Last;
 203   writer.write_count(nof_entries);
 204   for (u4 i = 0; i < nof_entries; ++i) {
 205     writer.write_key(i);
 206     writer.write(MetaspaceGCThresholdUpdater::to_string((MetaspaceGCThresholdUpdater::Type)i));
 207   }
 208 }
 209 
 210 void MetadataTypeConstant::serialize(JfrCheckpointWriter& writer) {
 211   static const u4 nof_entries = Metaspace::MetadataTypeCount;
 212   writer.write_count(nof_entries);
 213   for (u4 i = 0; i < nof_entries; ++i) {
 214     writer.write_key(i);
 215     writer.write(Metaspace::metadata_type_name((Metaspace::MetadataType)i));
 216   }
 217 }
 218 


< prev index next >