equal
deleted
inserted
replaced
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 |