Integrated: 8326235: RISC-V: Size CodeCache for short calls encoding
Robbin Ehn
rehn at openjdk.org
Wed Feb 21 14:35:59 UTC 2024
On Tue, 20 Feb 2024 08:28:18 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
> Hi, please consider.
>
> This limits the code cache to a size such that all code cache -> code cache calls and jump may always use auipc+jalr.
> (this is what we do in practice)
> Thus we can fix the encoding for those and not have variable encoding.
> The reduction of the size is just 2k, but due to option passing the real reduction is probably 1M.
> -XX:ReservedCodeCacheSize=2047M (down from 2048)
>
> Note, specifying '2G' gives the message:
>
>> Invalid ReservedCodeCacheSize=2048M. Must be at most 2047M.
>
> Manually test, no test I found uses this large code cache.
This pull request has now been integrated.
Changeset: 51e2dde0
Author: Robbin Ehn <rehn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/51e2dde018746f419922ae40cd039cd6f27f1b75
Stats: 10 lines in 2 files changed: 8 ins; 2 del; 0 mod
8326235: RISC-V: Size CodeCache for short calls encoding
Reviewed-by: fyang, tonyp
-------------
PR: https://git.openjdk.org/jdk/pull/17924
More information about the hotspot-dev
mailing list