[jdk17u-dev] Integrated: JDK-8306768: CodeCache Analytics reports wrong threshold
Anton Kozlov
akozlov at openjdk.org
Wed Apr 26 12:00:01 UTC 2023
On Tue, 25 Apr 2023 09:06:28 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> 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
This pull request has now been integrated.
Changeset: 243e6430
Author: Anton Kozlov <akozlov at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/243e643076f70c2cfb480897e1640a21e7ac6552
Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod
8306768: CodeCache Analytics reports wrong threshold
Reviewed-by: phh
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/1295
More information about the jdk-updates-dev
mailing list