RFR: 8303684: Lift upcall sharing mechanism to AbstractLinker (mainline)

Andrey Turbanov aturbanov at openjdk.org
Sat Mar 11 08:16:22 UTC 2023


On Mon, 6 Mar 2023 18:40:47 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Port of: https://github.com/openjdk/panama-foreign/pull/791 which lifts the sharing mechanism for upcall stubs to AbstractLinker. 
> 
> This also speeds up upcall stub linking:

src/java.base/share/classes/jdk/internal/foreign/abi/aarch64/windows/WindowsAArch64Linker.java line 61:

> 59:     @Override
> 60:     protected UpcallStubFactory arrangeUpcall(MethodType targetType, FunctionDescriptor function) {
> 61:         return  CallArranger.WINDOWS.arrangeUpcall(targetType, function);

Suggestion:

        return CallArranger.WINDOWS.arrangeUpcall(targetType, function);

-------------

PR: https://git.openjdk.org/jdk/pull/12883


More information about the core-libs-dev mailing list