JDK-8319117 : GrowableArray: Allow for custom initializer instead of copy constructor
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-10-30
  • Updated: 2024-08-29
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
tbdUnresolved
Related Reports
Relates :  
Description
When using at_put and at_put_grow you can provide a value which will be supplied to the constructor of each element. In other words, you can intialize each element through a copy constructor.

I suggest that we also provide a function equivalent where the function is provided a pointer to the memory to be initialized.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16409 Date: 2023-10-29 14:00:25 +0000
30-10-2023