Integrated: 8286339: compiler/c2/irTests/TestEnumFinalFold.java fails if Enum/String methods are not inlined

Aleksey Shipilev shade at openjdk.java.net
Wed May 11 05:32:41 UTC 2022


On Tue, 10 May 2022 08:11:12 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> As shown in the bug, the test relies on test methods in `Enum` and `String` to be inlined for constant folding to happen. In some testing modes, this does not happen. The fix is to force inlining for methods that test uses. It is kinda odd to ask force inlining of system class methods, but it does not seem problematic.
> 
> Additional testing:
>  - [x] Test now passes in unusual test modes reported
>  - [x] Test still passes in default test modes on x86_32 and x86_64

This pull request has now been integrated.

Changeset: 9c254841
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9c2548414c71b4caaad6ad9e1b122f474e705300
Stats:     7 lines in 2 files changed: 5 ins; 1 del; 1 mod

8286339: compiler/c2/irTests/TestEnumFinalFold.java fails if Enum/String methods are not inlined

Reviewed-by: thartmann, jiefu

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

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


More information about the hotspot-compiler-dev mailing list