Are generated bindings blocking or not
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Mar 6 16:51:52 UTC 2023
There is no special semantics associated to native methods. E.g. you
would get the same blocking behavior you'd get when calling the function
with C: if the function returns immediately, that same function, invoked
via a downcall method handle should also return immediately.
If the target function spins an asynchronous thread and performs some
extra execution there, Panama will *not* wait for that computation to
end (again, same as C).
Maurizio
On 06/03/2023 15:51, Martin Pernollet wrote:
> Hi,
>
> While trying to compare the performance of generated binding with
> frameworks that do not use Panama, I was surprised to measure a (too)
> small time while invoking Panama generated methods in one of my
> benchmarks.
>
> I thus wondered if these methods are blocking or not while invoking
> their native counterparts?
>
> Thanks in advance!
>
> Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230306/d74e3285/attachment-0001.htm>
More information about the panama-dev
mailing list