src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkHeader.java
branchJEP-349-branch
changeset 57690 9316d02dd4a5
parent 57459 df39f8d8f4d6
child 57971 aa7b1ea52413
equal deleted inserted replaced
57641:5fb8ececb9e6 57690:9316d02dd4a5
   123             long durationNanos = input.readPhysicalLong();
   123             long durationNanos = input.readPhysicalLong();
   124             input.positionPhysical(absoluteChunkStart + FILE_STATE_POSITION);
   124             input.positionPhysical(absoluteChunkStart + FILE_STATE_POSITION);
   125             byte fileState2 =  input.readPhysicalByte();
   125             byte fileState2 =  input.readPhysicalByte();
   126             if (fileState1 == fileState2) { // valid header
   126             if (fileState1 == fileState2) { // valid header
   127                 finished = fileState1 == 0;
   127                 finished = fileState1 == 0;
   128                 if (constantPoolPosition != 0 && metadataPosition != 0) {
   128                 if (metadataPosition != 0) {
   129                     Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Setting input size to " + (absoluteChunkStart + chunkSize));
   129                     Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Setting input size to " + (absoluteChunkStart + chunkSize));
   130                     if (finished) {
   130                     if (finished) {
   131                         // This assumes that the whole recording
   131                         // This assumes that the whole recording
   132                         // is finished if the first chunk is.
   132                         // is finished if the first chunk is.
   133                         // This is a limitation we may want to
   133                         // This is a limitation we may want to