Integrated: 8347718: Unexpected NullPointerException in C2 compiled code due to ReduceAllocationMerges
Cesar Soares Lucas
cslucas at openjdk.org
Tue Jan 28 19:19:53 UTC 2025
On Mon, 27 Jan 2025 03:36:24 GMT, Cesar Soares Lucas <cslucas at openjdk.org> wrote:
> Please, review this patch to fix an issue in reducing allocation merges used by Cmp nodes. The attached test case, adapted from the one attached to the JBS issue, can be used to reproduce the issue. The root of the problem was not properly checking the return value of `optimize_ptr_compare` against different Cmp mask predicates.
>
> I tested this on OSX(ARM64) & Linux(Intel) tier1-4.
This pull request has now been integrated.
Changeset: 9f4d3de4
Author: Cesar Soares Lucas <cslucas at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/9f4d3de442a846c503dac52de4a757e5b5638e73
Stats: 74 lines in 2 files changed: 71 ins; 0 del; 3 mod
8347718: Unexpected NullPointerException in C2 compiled code due to ReduceAllocationMerges
Reviewed-by: kvn, thartmann
-------------
PR: https://git.openjdk.org/jdk/pull/23312
More information about the hotspot-compiler-dev
mailing list