JDK-8329224 : [lworld] Intrinsification of Arrays.copyOf and Arrays.copyOfRange should support null-restricted arrays
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2024-03-27
  • Updated: 2025-11-19
  • Resolved: 2025-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaResolved
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8372160 :  
Description
Arrays.copyOf and Arrays.copyOfRange should return null-restricted arrays if the given original array is null-restricted.   The intrinsified methods need update along with the library change.

Library change JDK-8329218 is: https://github.com/openjdk/valhalla/compare/lworld...mlchung:valhalla:arraysCopyOf

test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestArrays.java fails without VM compiler support.

Comments
Fixing with JDK-8251971.
19-11-2025

[~mchung] That sounds reasonable, feel free to disable these tests with JDK-8329218. It will take a while until I get to this.
03-04-2024

It would help if JDK-8329218 is integrated in lworld and simply disable 3 test cases in test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestArrays.java that fail due to this issue.
03-04-2024