JDK-8314644 : Change "Rvalue references and move semantics" into an accepted feature
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: other
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-08-21
  • Updated: 2025-04-25
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
Rvalue and move semantics should be considered a viable part of programming Hotspot. These concepts allow us to not only write more performant code but also more correct code.  An example of the latter is when a class needs unique ownership of its dynamically allocated resources and so has removed its copy assignment/constructor but it needs to be moved. In today's Hotspot this has to be expressed in a roundabout way which is prone to bugs, such as having a method that generates a copy which must not be accidentally misused. Move semantics solve these issues.
Comments
Unassigning this so that someone else can take it up.
25-04-2025

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15386 Date: 2023-08-22 12:16:49 +0000
22-08-2023