Integrated: 8316178: Better diagnostic header for CodeBlobs
Aleksey Shipilev
shade at openjdk.org
Fri Sep 15 07:17:50 UTC 2023
On Wed, 13 Sep 2023 10:42:23 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: d575968b
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d575968b4bde74bd557cb84e89f0fa0f96b04087
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8316178: Better diagnostic header for CodeBlobs
Reviewed-by: thartmann, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/15708
More information about the hotspot-compiler-dev
mailing list