← Back to Pull requests

8394834: [leyden] Improve map file logging to add code cache #33409

Closed
unknown closed this pull request without merging on Oct 22, 2026 08:33 UTC
View on GitHub
unknown unknown commented on Oct 16, 2026 10:31 UTC
Author

Fixes: https://bugs.openjdk.org/browse/JDK-8394834

Currently we have a mapfile creation of the AOT Cache via Xlog (see https://bugs.openjdk.org/browse/JDK-8363440)

But the Code Cache implemented in https://github.com/openjdk/jdk/pull/30778 is not included on this logging.

With this PR we extend the logging of the AOT Cache Mapfile to include code cache.

Example of output:

For NMethods:
Pointer : @@ Nmethod Size level=Compilation Level id=Compilation ID Method signature

Output example:

0x00007fdbe7fce800: @@ Nmethod           31916 level=4 id=4647 jdk.internal.util.xml.impl.Parser.step()I
0x00007fdbe7fce7d0: @@ Nmethod           76668 level=4 id=4391 io.quarkus.bootstrap.runner.JarResource$JarResourceDataProvider.apply(Ljava/util/jar/JarFile;Ljava/nio/file/Path;Ljava/lang/String;)Ljava/lang/Object;

Fort the rest of the assets we will use the format:
Pointer : @@ Kind Size ID Name

We also add the Sub blobs to the mapfile. Output example:

0x00007fdbe7ffefe0: @@ StubGenBlob       24560 id=84 initial_blob (stub gen)
[...]
0x00007fdbe7ffef80: @@ StubGenBlob       3445 id=85 continuation_blob (stub gen)
[...]
0x00007fdbe7ffe230: @@ StubGenBlob       128589 id=86 compiler_blob (stub gen)
[...]
0x00007fdbe7ffe200: @@ StubGenBlob       55638 id=87 final_blob (stub gen)
0x00007fdbc8037968: @@ EmbeddedStub      118 id=236 blob=87 jlong_disjoint_arraycopy_stub (stub gen)
0x00007fdbc8037a88: @@ EmbeddedStub      359 id=237 blob=87 oop_disjoint_arraycopy_stub (stub gen)
0x00007fdbc8037d88: @@ EmbeddedStub      199 id=238 blob=87 oop_disjoint_arraycopy_uninit_stub (stub gen)
0x00007fdbc8037f48: @@ EmbeddedStub      633 id=251 blob=87 checkcast_arraycopy_stub (stub gen)
0x00007fdbc80381c8: @@ EmbeddedStub      473 id=252 blob=87 checkcast_arraycopy_uninit_stub (stub gen)
0x00007fdbc80383a8: @@ EmbeddedStub      55 id=253 blob=87 unsafe_arraycopy_stub (stub gen)
0x00007fdbc80383e8: @@ EmbeddedStub      725 id=254 blob=87 generic_arraycopy_stub (stub gen)
0x00007fdbc8038d08: @@ EmbeddedStub      285 id=255 blob=87 unsafe_setmemory_stub (stub gen)
0x00007fdbc80386c8: @@ EmbeddedStub      263 id=256 blob=87 jbyte_fill_stub (stub gen)
0x00007fdbc80387e8: @@ EmbeddedStub      250 id=257 blob=87 jshort_fill_stub (stub gen)
[...]

This is already included in leyden-premain2 via https://github.com/openjdk/leyden/pull/115 and https://github.com/openjdk/leyden/pull/118

---------

  • I confirm that I make this contribution in accordance with the OpenJDK Interim AI Policy.
  • <!-- Anything below this marker will be automatically updated, please do not edit manually! -->
    ---------

    Progress


  • \[x\] Change must not contain extraneous whitespace

  • \[x\] Commit message must refer to an issue

  • \[x\] Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)
  • Issue


    JDK-8394834: [leyden] Improve map file logging to add code cache (Enhancement - P4)

    Reviewers


    Vladimir Kozlov (@vnkozlov - Reviewer)
    Ashutosh Mehra (@ashu-mehra - Reviewer)
    Andrew Dinn (@adinn - 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/33409/head:pull/33409 \
    $ git checkout pull/33409

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

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

    Checkout this PR locally: \
    $ git pr checkout 33409

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

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

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

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

    Link to Webrev Comment
    </details>

    Diff: 542 lines (+406 / -136) across 6 files Reviewer: Delawen Review duration: 8522m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 542 lines diff across 6 files
    0.48
    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.377
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #33409"
    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: 48.0% (MEDIUM) · Higher = larger blast radius
    48.0%
    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: 19.0% · Safe to merge
    19.0%
    Repository