Array of booleans
Remi Forax
forax at univ-mlv.fr
Thu Mar 18 15:04:30 UTC 2021
Hi everybody,
It seems it's not possible to create a VarHandle on array of booleans
static final VarHandle BOOLEAN_HANDLE = ofSequence(ofValueBits(8, LITTLE_ENDIAN))
.varHandle(boolean.class, sequenceElement());
Is there a reason for that ?
>From the JVM POV, a boolean is stores on 8 bits and in the bytecode baload/bastore can load/store from either an array of booleans or an array of bytes.
regards,
Rémi
More information about the panama-dev
mailing list