Making FMA more flexible

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Apr 29 17:36:41 UTC 2020


On 29/04/2020 18:22, Ty Young wrote:
>
> On 4/29/20 11:37 AM, Maurizio Cimadamore wrote:
>
>
> *snip*
>
>
>> The function descriptor has to be passed to SystemABI to create the 
>> handle in the first place. At this (low) level, just primitive types, 
>> segments and addresses.
>>
>> *after* you get the method handle, you can adapt and obtain a new 
>> (higher-level) handle.
>
>
> Thanks.
>
>
> Question: does MethodHandle have the ability to reference a 
> yet-to-be-implemented method as a MethodHandle? I'm trying to use an 
> abstract class to handle the business logic and just have individual 
> classes implement(via extends) the "callback" method, but it fails, 
> saying it can't be found. Is there a specific code path that needs to 
> be taken?

You should be able to create a method handle out of an 
abstract/interface method, which will do the right thing on dispatch.

Perhaps paste some code or pointers and maybe I'll be able to point you 
in the right direction.

Maurizio

>
>
>>
>> Maurizio
>>


More information about the panama-dev mailing list