RFR: 8316178: Better diagnostic header for CodeBlobs

Aleksey Shipilev shade at openjdk.org
Wed Sep 13 10:49:48 UTC 2023


I realized that JMH perfasm misses some CodeBlobs, notably C1 RuntimeBlobs. While amending perfasm to capture those, I discovered the header printout for those blobs is not as convenient as for others. Notably, perfasm would like to know where the stub code ends.


# Good:
StubRoutines::sha512_implCompressMB [0x0000000117da2d80, 0x0000000117da3528] (1960 bytes)

# Bad:
Decoding RuntimeStub - _complete_monitor_locking_Java 0x0000000117e4fd10


After this change, we print this:


Decoding RuntimeStub - _complete_monitor_locking_Java 0x0000000114203110 [0x00000001142031c0, 0x0000000114203258] (152 bytes)


Note it still prints the (base) stub address. I think it is still useful for debugging. The brackets print the code size, because that is what the decoding block handles: the code.

-------------

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/15708/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15708&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316178
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/15708.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15708/head:pull/15708

PR: https://git.openjdk.org/jdk/pull/15708


More information about the hotspot-compiler-dev mailing list