larval value type and carrier object

Remi Forax forax at
Tue Jan 15 13:55:17 UTC 2019

Hi John, hi Mandy,
For de-constructing a matched pattern, we need a carrier object that will temporarily store the captured values,
given that jdk.internal.misc.Unsafe has now has the methods uninitializedDefaultValue()/makePrivateBuffer()/finishPrivateBuffer(), i wonder if there is a way to add a method Class<?> createBufferClass(MethodType) that creates a value class with the fields named _0, _1, _2, etc and the types of the fields extracted from the parameter types of the MethodType ?

With the JIT being able to always returns the same class if the MethodType is constant.


More information about the valhalla-dev mailing list