Short feedback on the linker (CLinker)
John Rose
john.r.rose at oracle.com
Mon Dec 28 21:29:41 UTC 2020
On Dec 28, 2020, at 3:51 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
>
> This is possible only because Panama doesn't really pass Java objects "as is" into native functions. Of course, creating handles to instances and passing those handles around creates extra dependencies between the environment which created the handle, and the environment consuming it - again, not saying it's an impossible problem to solve, but more thinking is definitively required before we cross that particular bridge.
Yes, in my response I “right sized” his request to
providing an indirect handle instead of a direct
pointer into the Java heap. Direct pointers are
much harder, too hard IMO. Handles are easier:
you just have to deal with all the nit-picky
bookkeeping problems, including those I sketched.
More information about the panama-dev
mailing list