JDK-8263125 : During deoptimization vectors should reassign scalarized payload after all objects are reallocated.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-06
  • Updated: 2021-09-22
  • Resolved: 2021-03-12
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.
JDK 17
17 b14Fixed
Related Reports
Relates :  
Description
Currently during deoptimization Vector's `payload` field values are restored during Vector reallocation:
https://github.com/openjdk/jdk/blob/master/src/hotspot/share/prims/vectorSupport.cpp#L155
Bat for scalar-replaced values (objects) this is not correct because that object could be re-allocated after allocation of this vector.

Scalar-replaced `payload` should be restored during regular fields reassignment.
Comments
Changeset: a6e056fd Author: Vladimir Kozlov <kvn@openjdk.org> Date: 2021-03-12 16:59:50 +0000 URL: https://git.openjdk.java.net/jdk/commit/a6e056fd
12-03-2021