Integrated: 8365071: ARM32: JFR intrinsic jvm_commit triggers C2 regalloc assert

Boris Ulasevich bulasevich at openjdk.org
Tue Aug 19 04:43:49 UTC 2025


On Fri, 8 Aug 2025 01:54:46 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:

> On 32-bit ARM, the jvm_commit JFR intrinsic builder feeds null (RegP) into a TypeLong Phi, causing mixed long/pointer register sizing and triggering the C2 register allocator assert(_num_regs == reg || !_num_regs).
> 
> The fix is trivial: use an appropriate ConL constant instead. This has no effect on 64-bit systems (the generated assembly is identical) but resolves a JFR issue on 32-bit systems.

This pull request has now been integrated.

Changeset: f2f7a490
Author:    Boris Ulasevich <bulasevich at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f2f7a490c091734ae1aa6cd402a117acbc1c699e
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8365071: ARM32: JFR intrinsic jvm_commit triggers C2 regalloc assert

Reviewed-by: mgronlun

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

PR: https://git.openjdk.org/jdk/pull/26684


More information about the graal-dev mailing list