RFR: 8360707: Globally enumerate all blobs, stubs and entries [v5]

Ashutosh Mehra asmehra at openjdk.org
Thu Jul 3 19:30:46 UTC 2025


On Thu, 3 Jul 2025 13:19:32 GMT, Andrew Dinn <adinn at openjdk.org> wrote:

>> Use the blob, stub and entry declarations to generate a single global enumeration for all blobs, likewise for all stubs and all entries. Modify stub generators in shared runtime, c1 runtime, c2 runtime and stub generator subsystems and their clients to use those enumerations consistently.
>
> Andrew Dinn has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - save blobs using blob ids
>  - make arg in declaration consistent with definition

src/hotspot/share/opto/compile.cpp line 976:

> 974:   // try to reuse an existing stub
> 975:   {
> 976:     StubId stub_id = static_cast<StubId>(_stub_id);

`static_cast` can be avoided if `_stub_id` type is changed from `int` to `StubId`. And there is a similar `static_cast` in output.cpp as well.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26004#discussion_r2183613368


More information about the hotspot-dev mailing list