src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointManager.cpp
branchJEP-349-branch
changeset 57886 87f8a814310d
parent 57882 562f598d303c
child 57934 9c150f2b1fea
--- a/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointManager.cpp	Mon Aug 26 18:10:34 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointManager.cpp	Tue Aug 27 12:08:01 2019 +0200
@@ -225,8 +225,8 @@
 // offsets into the JfrCheckpointEntry
 static const juint starttime_offset = sizeof(jlong);
 static const juint duration_offset = starttime_offset + sizeof(jlong);
-static const juint mode_offset = duration_offset + sizeof(jlong);
-static const juint types_offset = mode_offset + sizeof(juint);
+static const juint checkpoint_type_offset = duration_offset + sizeof(jlong);
+static const juint types_offset = checkpoint_type_offset + sizeof(juint);
 static const juint payload_offset = types_offset + sizeof(juint);
 
 template <typename Return>
@@ -246,8 +246,8 @@
   return read_data<jlong>(data + duration_offset);
 }
 
-static u1 mode(const u1* data) {
-  return read_data<u1>(data + mode_offset);
+static u1 checkpoint_type(const u1* data) {
+  return read_data<u1>(data + checkpoint_type_offset);
 }
 
 static juint number_of_types(const u1* data) {
@@ -260,7 +260,7 @@
   cw.write(starttime(data));
   cw.write(duration(data));
   cw.write(offset_prev_cp_event);
-  cw.write(mode(data));
+  cw.write(checkpoint_type(data));
   cw.write(number_of_types(data));
 }