[jdk11u-dev] Integrated: 8292713: Unsafe.allocateInstance should be intrinsified without UseUnalignedAccesses

Fei Yang fyang at openjdk.org
Tue Sep 12 01:09:53 UTC 2023


On Fri, 8 Sep 2023 07:38:09 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Backport to improve arm32 performance in 11u and riscv-port in: https://github.com/openjdk/riscv-port-jdk11u/pull/3.
> This is not a clean backport as the function has been moved to new file and renamed. 
> 
> I checked the 11u related code and I think the following analysis on the JBS description is still true for 11u:
> "The intrinsic is currently only implemented in C2. I see no reason for this intrinsic to depend on `UseUnalignedAccesses`: what `LibraryCallKit::inline_unsafe_allocate()` does seems similar to what the regular `Parse::do_new()` does, namely doing the clinit barrier and then delegating into `GraphKit::new_instance`."
> 
> Tested with the initial riscv-port in: https://github.com/openjdk/riscv-port-jdk11u/pull/3

This pull request has now been integrated.

Changeset: 0713dbb1
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk11u-dev/commit/0713dbb1ce95ba0d3b9c7331890cff1f73ddb1e0
Stats:     2 lines in 1 file changed: 1 ins; 1 del; 0 mod

8292713: Unsafe.allocateInstance should be intrinsified without UseUnalignedAccesses

Reviewed-by: phh
Backport-of: c0623972cffdbcd7f80e84a1ec344fd382a4a5cc

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

PR: https://git.openjdk.org/jdk11u-dev/pull/2125


More information about the jdk-updates-dev mailing list