JDK-8264774 : Implementation of Foreign Function and Memory API (Incubator)
  • Type: Bug
  • Component: core-libs
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-06
  • Updated: 2021-07-27
  • Resolved: 2021-06-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b25Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Implement new iteration of Foreign Memory and Foreign Linker APIs.
Comments
Hey [~mcimadamore], thanks - yes I can confirm I can again build on raspberry pi OS 32-bit
03-06-2021

Hi, JaCoCo project here. The above PR fixed our arm32 builds again. Thx!
03-06-2021

Hi [~martin], the failures you described were known, and have been addressed by this other PR: https://github.com/openjdk/jdk/pull/4303 Which has just been integrated. Please let us know if you find other issues.
03-06-2021

Appears to break linux-arm raspberry pi build. /usr/bin/ld: /home/martin/ws/jdk/build/linux-arm-server-release/hotspot/variant-server/libjvm/objs/foreign_globals.o: in function `ForeignGlobals::parse_call_regs(_jobject*)': foreign_globals.cpp:(.text+0xb5c): undefined reference to `ForeignGlobals::parse_call_regs_impl(_jobject*) const' /usr/bin/ld: /home/martin/ws/jdk/build/linux-arm-server-release/hotspot/variant-server/libjvm/objs/universalUpcallHandler.o: in function `PUH_SupportsOptimizedUpcalls': universalUpcallHandler.cpp:(.text+0xa0): undefined reference to `ProgrammableUpcallHandler::supports_optimized_upcalls()' /usr/bin/ld: /home/martin/ws/jdk/build/linux-arm-server-release/hotspot/variant-server/libjvm/objs/universalUpcallHandler.o: in function `PUH_AllocateOptimizedUpcallStub': universalUpcallHandler.cpp:(.text+0x1030): undefined reference to `ProgrammableUpcallHandler::generate_optimized_upcall_stub(_jobject*, Method*, _jobject*, _jobject*)' collect2: error: ld returned 1 exit status Looking for definitions of supports_optimized_upcalls ... I see only: ./src/hotspot/cpu/x86/universalUpcallHandler_x86_64.cpp ./src/hotspot/cpu/x86/universalUpcallHandler_x86_32.cpp ./src/hotspot/cpu/aarch64/universalUpcallHandler_aarch64.cpp so I expect the same failure on any architecture other than these 3.
03-06-2021

Changeset: a223189b Author: Maurizio Cimadamore <mcimadamore@openjdk.org> Date: 2021-06-02 10:53:06 +0000 URL: https://git.openjdk.java.net/jdk/commit/a223189b069a7cfe49511d49b5b09e7107cb3cab
02-06-2021