Traversing an array of value types seen as an array of Object is slow

Roland Westrelin rwestrel at redhat.com
Thu Jun 28 10:18:26 UTC 2018


> 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...

Roland.



More information about the valhalla-dev mailing list