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

Richard Reingruber rrich at openjdk.java.net
Fri Mar 12 10:59:07 UTC 2021


On Fri, 12 Mar 2021 09:09:06 GMT, Vladimir Ivanov <vlivanov 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

And can't the payload for deoptimization be represented as a scalarized array in that case too? Maybe not because of the special handling a VectorMask requires.

I'm probably not familiar enough with the vector implementation, so sorry for bothering.

IIUC @vnkozlov says this could be done but not for VectorMask.

> I think it could be done if during debug info generation we describe element's storage as Scalarized array. But it would not help VectorMask as you said.

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

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


More information about the hotspot-compiler-dev mailing list