Panama feedback
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Mar 31 23:29:33 UTC 2020
On 31/03/2020 23:39, Ty Young wrote:
>
> On 3/31/20 8:47 AM, Maurizio Cimadamore wrote:
>
> <snip>
>
>
>> yeah - but we can add a more general one which will work for any size
>> :-)
>
>
> I'm guessing by a unique padding constable attribute, right?
Not really - easier. PaddingLayouts are a special class (not exposed
because it's package private) - we can just do an instanceof :-)
>
>
> I don't know if it's on your giant TODO list already but could all the
> constant MemoryValue(s) be given some too? For example, Windows.C_INT
> could have a constable attribute "TYPE" with a value of "INT" and a
> "PLATFORM" with a value "WINDOWS".
>
>
> Standard attributes would be useful!
Yeah - some would be useful; the one that I find the most interesting
would be to attach a 'preferred carrier' to a layout (e.g int.class) so
that we can infer carriers from layouts. Others are possible too - note
that native layouts should already have a standard ABI type attached to
them. Perhaps attaching the ABI name could make sense too
Maurizio
>
>
>>
>> Maurizio
More information about the panama-dev
mailing list