← Back to Pull requests

8369037: Identify owning method for MethodData and MethodCounters in AOT map output #27603

Closed
unknown closed this pull request without merging on Oct 03, 2025 07:57 UTC
View on GitHub
unknown unknown commented on Oct 02, 2025 08:26 UTC
Author

Part of https://bugs.openjdk.org/browse/JDK-8369037
Provides part of fixes needed to resolve https://bugs.openjdk.org/browse/JDK-8363440

The AOT map file lists many objects without any kind of context of what they represent. For example, MethodCounters and MethodData do not show to what method they belong to. With this patch, now we can at least link the MethodCounters and MethodData to the Method they belong to.

Before:

$ cat aot.map | grep "@@ MethodCounters"
[...]
0x0000000801e4c280: @@ MethodCounters    64

`` bash
$ cat aot.map | grep "@@ MethodData"
[...]
0x0000000801e44448: @@ MethodData 584

After:

$ cat aot.map | grep "@@ MethodCounters"
[...]
0x0000000801f8b9a8: @@ MethodCounters 64 void jdk.internal.access.SharedSecrets.setJavaLangAccess(jdk.internal.access.JavaLangAccess)
0x0000000801f8be60: @@ MethodCounters 64 void java.lang.Object.notifyAll()
bash
$ cat aot.map | grep "@@ MethodData"
[...]
0x0000000801f700e0: @@ MethodData 728 int java.lang.module.ModuleDescriptor.hashCode()
0x0000000801f81af0: @@ MethodData 688 java.lang.String java.lang.Class.cannotCastMsg(java.lang.Object)
`

<!-- Anything below this marker will be automatically updated, please do not edit manually! -->
---------

Progress


  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)

  • Change must not contain extraneous whitespace

  • Commit message must refer to an issue
  • Issue


    JDK-8369037: Identify owning method for MethodData and MethodCounters in AOT map output (Sub-task - P4)

    Reviewers


    Ashutosh Mehra (@ashu-mehra - Committer) Review applies to b36e4408
    Andrew Dinn (@adinn - Reviewer) Review applies to b36e4408
    Mat Carter (@macarte - Author) Review applies to 76e3a5a0
    * 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/27603/head:pull/27603 \
    $ git checkout pull/27603

    Update a local copy of the PR: \
    $ git checkout pull/27603 \
    $ git pull https://git.openjdk.org/jdk.git pull/27603/head

    </details>
    <details><summary>Using Skara CLI tools</summary>

    Checkout this PR locally: \
    $ git pr checkout 27603

    View PR using the GUI difftool: \
    $ git pr show -t 27603`

    </details>
    <details><summary>Using diff file</summary>

    Download this PR as a diff file: \
    <a href="https://git.openjdk.org/jdk/pull/27603.diff">https://git.openjdk.org/jdk/pull/27603.diff</a>

    </details>
    <details><summary>Using Webrev</summary>

    Link to Webrev Comment
    </details>

    Diff: 403 lines (+302 / -101) across 5 files Reviewer: Delawen Review duration: 1410m
    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 · 403 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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 #27603"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.8% (MEDIUM) · Higher = larger blast radius
    44.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.7% · Safe to merge
    17.7%
    Repository