RFR: 8263125: During deoptimization vectors should reassign scalarized payload after all objects are reallocated. [v2]

Vladimir Ivanov vlivanov at openjdk.java.net
Fri Mar 12 09:12:06 UTC 2021


On Fri, 12 Mar 2021 08:48:50 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> May I ask why there is a special case to reallocate a vectors payload at all. In
other words: why is the method VectorSupport::allocate_vector_payload_helper()
needed? Is it for support of VectorMask?

(I assume you are asking about `VectorSupport::allocate_vector_payload()`.)

Special handling is needed because Vector/VectorMask is represented as a single value in scalarized form, but in the boxed form it's a pair of instances: Vector/VectorMask + primitive array (holding the payload). `reassign_fields` doesn't handle such case and that's why it is special-cased.

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

PR: https://git.openjdk.java.net/jdk/pull/2924


More information about the hotspot-dev mailing list