Dealing with Complex memory values

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Jan 20 12:05:50 UTC 2020


The SystemABI needs to have a 'well-known' carrier to deal with > 64 
bits types. Be it long[], a pair of longs, or something else (an inline 
type).

Once we have that lower plumbing working (which is the hardest part), it 
would be possible to 'adapt' the resulting var handle (pretty much the 
same way you can adapt method handles), so that instead of exposing a 
VarHandle which takes a long[], you can expose a VarHandle which takes 
something else (e.g. LongComplex - where LongComplex can be a type 
auto-generated by jextract).

Maurizio

On 20/01/2020 11:50, Ty Young wrote:
>
>>
>> I'm not familiar with the technical details so apologizes if this is 
>> a dumb question but... would it still not be possible to define these 
>> types now butinterpreted using a hacky workaround behind the scenes 
>> and then implement them properly later when Vahlhalla is finished?
>>
>
> For clarification I mean the primitive types themselves, so that you 
> wouldn't pass long[] but long128.
>


More information about the panama-dev mailing list