[foreign-preview] Integrated: 8280721: Rewrite binding of foreign classes to use javaClasses.h/cpp
Jorn Vernee
jvernee at openjdk.java.net
Mon Feb 21 16:37:10 UTC 2022
On Mon, 31 Jan 2022 16:25:58 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Hi,
>
> This patch is a refactoring of the binding between the VM and several Java classes using by the linker.
>
> The usual way of creating such mappings is by declaring a C++ companion class in javaClasses.(h/c)pp, but because the bound Javas classes were previously in an incubator module, that wasn't possible.
>
> Now that we have moved to java.base, we can create the missing C++ companion classes, and remove the code that did ad-hoc lookup of field offsets in the constructor of the ForeignGlobals class in the VM.
>
> Additionally, this patch also removes 2 proxy classes (VMStorageProxy and ABIDescriptorProxy) that are no longer needed. As well as move NativeEntryPoint from the jdk.internal.invoke package to the jdk.internal.foreign package, since it was the only class in that package.
>
> Thanks,
> Jorn
This pull request has now been integrated.
Changeset: 06223fb7
Author: Jorn Vernee <jvernee at openjdk.org>
URL: https://git.openjdk.java.net/panama-foreign/commit/06223fb7251b9f69c8c48393cd2e5026c27e5c30
Stats: 618 lines in 27 files changed: 314 ins; 245 del; 59 mod
8280721: Rewrite binding of foreign classes to use javaClasses.h/cpp
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/634
More information about the panama-dev
mailing list