8373114: Redundant MethodCounters in the preimage generated by training run #33880
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 401 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #33880"
general
weight: 0.35
vnkozlov
It appears the MethodCounters are no longer needed in the AOTConfiguration or AOTCache file.
TrainingData has reference to MethodCounters but they are not used anywhere. So there is no need to save MCS in the AOTConfiguration or AOTCache file.
After this patch, no method counters are stored, as shown by
-Xlog:aot=debugoutput:Training phase:
Aseembly phase:
In addition, I have also removed some of the redundant calls to
clear_XXX()methods to clear method flags inunlink_method()because these are already cleared inremove_unshareable_flags.Also, there is no need to call
remove_unshareable_infoandrestore_unshareable_infoon MCS and ~MTD~ MDOs because they have already been set to null inunlink_method.---------
<!-- Anything below this marker will be automatically updated, please do not edit manually! -->
---------
Progress
Issue
JDK-8373114: Redundant MethodCounters in the preimage generated by training run (Enhancement - P4)
Reviewers
Vladimir Kozlov (@vnkozlov - Reviewer)
* Ioi Lam (@iklam - Reviewer)
Reviewing
<details><summary>Using <code>git</code></summary>
Checkout this PR locally: \
$ git fetch https://git.openjdk.org/jdk.git pull/33880/head:pull/33880\$ git checkout pull/33880Update a local copy of the PR: \
$ git checkout pull/33880\$ git pull https://git.openjdk.org/jdk.git pull/33880/head</details>
<details><summary>Using Skara CLI tools</summary>
Checkout this PR locally: \
$ git pr checkout 33880View PR using the GUI difftool: \
$ git pr show -t 33880</details>
<details><summary>Using diff file</summary>
Download this PR as a diff file: \
<a href="https://git.openjdk.org/jdk/pull/33880.diff">https://git.openjdk.org/jdk/pull/33880.diff</a>
</details>
<details><summary>Using Webrev</summary>
Link to Webrev Comment
</details>