RFR: 8280872: Reorder code cache segments to improve code density [v2]

Evgeny Astigeevich duke at openjdk.java.net
Thu Mar 3 15:22:07 UTC 2022


On Thu, 3 Mar 2022 12:16:21 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:

>> Can we moved the code to `codestub_branch_needs_far_jump`? It is the only place where the code is used.
>> We might need to make either `get_code_heap` public or `MacroAssembler` a friend of `CodeCache`.
>
> Yes, it is the only place. Though I don't do this for encapsulation reasons: I think it's the internal details of the code cache if it is segmented and what the segment boundaries are. Right?

Ok, let's keep it here. Could we change the name from `max_distance_to_codestub` to `max_distance_to_non_nmethod` to make clear the function covers all non_nmethod code?

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

PR: https://git.openjdk.java.net/jdk/pull/7517


More information about the hotspot-dev mailing list