Traversing an array of value types seen as an array of Object is slow
tobias.hartmann at oracle.com
Mon Jul 2 08:46:14 UTC 2018
I've filed JDK-8206141  to keep track of this.
On 28.06.2018 12:18, Roland Westrelin wrote:
>> You can have a generic assembly code that loads the flattened value
>> type as a reference (you need this kind of code for
>> java.lang.reflect.Array.get() too) or/and you can consider that
>> accessing the array is like a method call and profile the value type
>> array and deoptimize only once. In that case, the profile should be
>> the size of the layout of the value type.
> Right, we realize that. So a small matter of implementation...
More information about the valhalla-dev