[jdk17u-dev] RFR: JDK-8306768: CodeCache Analytics reports wrong threshold
Anton Kozlov
akozlov at openjdk.org
Tue Apr 25 09:12:17 UTC 2023
Jcmd CodeCache_Analytics uses own implementation of threshold calculation, allowing an error to creep in, making report invalid. The suggestion is to use the existing method for free ratio calculation. After the fix, the reported values become sane.
java -XX:InitialCodeCacheSize=1G -XX:ReservedCodeCacheSize=1G ...
cmd jdk.compiler/com.sun.tools.javac.launcher.Main Compiler.CodeHeap_Analytics | grep -A 2 "Threshold for method to be considered 'cold'"
Threshold for method to be considered 'cold': -2037.960
min. hotness = 1016
avg. hotness = 2048
--
Threshold for method to be considered 'cold': -2037.960
min. hotness = 1016
avg. hotness = 2048
--
Threshold for method to be considered 'cold': -2037.960
No hotness data available
-------------
Commit messages:
- JDK-8306768: CodeCache Analytics reports wrong threshold
Changes: https://git.openjdk.org/jdk17u-dev/pull/1295/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1295&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8306768
Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/1295.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1295/head:pull/1295
PR: https://git.openjdk.org/jdk17u-dev/pull/1295
More information about the jdk-updates-dev
mailing list