src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkHeader.java
branchJEP-349-branch
changeset 58197 0ef79bd7fb5c
parent 57971 aa7b1ea52413
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkHeader.java	Tue Sep 17 19:37:49 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkHeader.java	Wed Sep 18 03:45:46 2019 +0200
@@ -34,8 +34,7 @@
 import jdk.jfr.internal.Utils;
 
 public final class ChunkHeader {
-    public static final long HEADER_SIZE = 68;
-    public static final byte MARKED_FOR_DELETION = (byte) 255;
+    private static final long HEADER_SIZE = 68;
     private static final byte UPDATING_CHUNK_HEADER = (byte) 255;
     private static final long CHUNK_SIZE_POSITION = 8;
     private static final long DURATION_NANOS_POSITION = 40;
@@ -107,7 +106,8 @@
         refresh();
         input.position(absoluteEventStart);
     }
-    public void refresh() throws IOException {
+
+    void refresh() throws IOException {
         while (true) {
             byte fileState1;
             input.positionPhysical(absoluteChunkStart + FILE_STATE_POSITION);
@@ -279,4 +279,7 @@
         return absoluteEventStart;
     }
 
+    static long headerSize() {
+        return HEADER_SIZE;
+    }
 }