JDK-8333140 : Platform does not support native linker on linux x86_32
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.foreign
  • Affected Version: 23
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux
  • CPU: x86
  • Submitted: 2024-05-29
  • Updated: 2025-01-07
  • Resolved: 2025-01-07
Related Reports
Relates :  
Description
serviceability/jvmti/vthread/GetThreadState/GetThreadStateTest.java#default failed Platform does not support native linker on linux x86_32

test result log snippet:
"MainThread" #19 [221517] prio=5 os_prio=0 cpu=509.03ms elapsed=480.14s tid=0xa2d4c620 nid=221517 waiting on condition  [0xa29fd000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
	at java.lang.Thread.sleepNanos0(java.base@23/Native Method)
	at java.lang.Thread.sleepNanos(java.base@23/Thread.java:496)
	at java.lang.Thread.sleep(java.base@23/Thread.java:527)
	at GetThreadStateTest.awaitTrue(GetThreadStateTest.java:350)
	at GetThreadStateTest.testParkWhenPinned(GetThreadStateTest.java:298)

Exception in thread "" java.lang.ExceptionInInitializerError
	at GetThreadStateTest.lambda$testParkWhenPinned$9(GetThreadStateTest.java:289)
	at java.base/java.lang.ThreadBuilders$BoundVirtualThread.run(ThreadBuilders.java:437)
Caused by: java.lang.UnsupportedOperationException: Platform does not support native linker
	at java.base/jdk.internal.foreign.abi.SharedUtils.getSystemLinker(SharedUtils.java:255)
	at java.base/java.lang.foreign.Linker.nativeLinker(Linker.java:592)
	at jdk.test.lib.thread.VThreadPinner.invoker(VThreadPinner.java:126)
	at jdk.test.lib.thread.VThreadPinner.<clinit>(VThreadPinner.java:50)
	... 2 more
Comments
32-bit x86 Port will be removed(https://bugs.openjdk.org/browse/JDK-8338285) in future, I think we should close this issue.
07-01-2025

The JDK that was used might have been built without the fallback linker (without using `--enable-fallback-linker` when configuring). You can check for a `libfallbackLinker.so` library in the `lib` directory of the image.
06-01-2025