JDK-8233075 : JFR - nmetods - misspelled in several places
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12,13,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-10-28
  • Updated: 2020-06-01
  • Resolved: 2019-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.6Fixed 13.0.4Fixed 14 b21Fixed
Related Reports
Relates :  
Description
I noticed "nmetods" is misspelled like that in the jfr stats and also in the ./src/hotspot/share/jfr/periodic/jfrPeriodic.cpp and in ./src/hotspot/share/jfr/metadata/metadata.xml, for example  jdk.CompilerStatistics {
 startTime = 21:15:29.797
 compileCount = 3460
 bailoutCount = 5
 invalidatedCount = 0
 osrCompileCount = 50
 standardCompileCount = 3410
 osrBytesCompiled = 0 bytes
 standardBytesCompiled = 0 bytes
 nmetodsSize = 6.9 MB
 nmetodCodeSize = 4.8 MB
 peakTimeSpent = 226.000 ms
 totalTimeSpent = 8.366 s
}

 805   <Event name="CompilerStatistics" category="Java Virtual Machine, Compiler" label="Compiler Statistics" thread="false" period="everyChunk" startTime="false">
 806     <Field type="int" name="compileCount" label="Compiled Methods" />
 807     <Field type="int" name="bailoutCount" label="Bailouts" />
 808     <Field type="int" name="invalidatedCount" label="Invalidated Compilations" />
 809     <Field type="int" name="osrCompileCount" label="OSR Compilations" />
 810     <Field type="int" name="standardCompileCount" label="Standard Compilations" />
 811     <Field type="ulong" contentType="bytes" name="osrBytesCompiled" label="OSR Bytes Compiled" />
 812     <Field type="ulong" contentType="bytes" name="standardBytesCompiled" label="Standard Bytes Compiled" />
 813     <Field type="ulong" contentType="bytes" name="nmetodsSize" label="Compilation Resulting Size" />
 814     <Field type="ulong" contentType="bytes" name="nmetodCodeSize" label="Compilation Resulting Code Size" />
 815     <Field type="long" contentType="millis" name="peakTimeSpent" label="Peak Time" />
 816     <Field type="long" contentType="millis" name="totalTimeSpent" label="Total time" />
 817   </Event>

Comments
Fix Request (13u): This patch is a typo fix that would mostly affect external consumers of JFR events. The patch applies cleanly. Tier1 passes. Test passes with patch and fails without
29-05-2020

Fix Request (11u): This patch is a typo fix that would mostly affect external consumers of JFR events. The patch applies cleanly. Tier one and JFR tests passed on my machine.
01-11-2019

This seemed to be misspelled in the original JFR integration in JDK-8199712.
01-11-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/5a0e0d0b3a27 User: ecaspole Date: 2019-10-29 17:50:18 +0000
29-10-2019