Integrated: 8269122: The use of "extern const" for Register definitions generates poor code

Andrew Haley aph at openjdk.java.net
Mon Jun 28 09:18:12 UTC 2021


On Tue, 22 Jun 2021 11:06:31 GMT, Andrew Haley <aph at openjdk.org> wrote:

> Register definitions in HotSpot are declared as "extern const"
> for ancient-historical reasons. We should stop doing that: it would
> make the assembler significantly faster and smaller, improving both
> bootstrap time and compilation speed.
> 
> This change shaves 2% off the size of the text section of libjvm.so on AArch64.

This pull request has now been integrated.

Changeset: 4d2412ef
Author:    Andrew Haley <aph at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4d2412ef3e1068063acc954a00b4db0fa4b5affb
Stats:     45 lines in 1 file changed: 0 ins; 39 del; 6 mod

8269122: The use of "extern const" for Register definitions generates poor code

Reviewed-by: adinn, kbarrett, kvn

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

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


More information about the hotspot-compiler-dev mailing list