Skip to content

Commit

Permalink
Write actual number of classes, with implied classes (oracle#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Kennke authored Apr 27, 2021
1 parent 677b37c commit 864e7d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public int writeClasses(JfrChunkWriter writer, TypeInfo typeInfo) throws IOExcep
return 0;
}
writer.writeCompressedLong(JfrTypes.Class.getId());
writer.writeCompressedInt(JfrTraceIdLoadBarrier.classCount(JfrTraceIdEpoch.getInstance().previousEpoch()));
writer.writeCompressedInt(typeInfo.getClasses().size());

for (Class<?> clazz : typeInfo.getClasses()) {
writeClass(writer, typeInfo, clazz);
Expand Down

0 comments on commit 864e7d2

Please sign in to comment.