Array of booleans

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Mar 18 16:18:37 UTC 2021


On 18/03/2021 16:14, Maurizio Cimadamore wrote:
> Because of this asymmetry it was decided that it would have been 
> better off to leave booleans (even in the linker API) in user land. 
> After all, it is fairly easy to adapt method handle and var handle to 
> do the right thing under the assumption that a boolean in the ABI and 
> in the VM is 8 bit. 

Note that the ByteBuffer API similarly avoids booleans (there's no 
getBoolean in there) - I suspect for very similar reasons (not 100% 
specified, and easy to workaround).

Maurizio



More information about the panama-dev mailing list