`NativelockTests.nativeAllLockContention` failed

Author: fandreuzCreated Jan 8, 2026Updated Jan 8, 2026
Labelstest

Describe the bug

Observed this at least twice:

INFO: Running NativelockTests.nativeAllLockContention...
Profiling started
Test completed successfully.
Testing all lock types...
Testing mutex contention...
Testing rwlock contention...
FAIL [79/145] NativelockTests.nativeAllLockContention took 1.314 s
java.lang.AssertionError: No rdlock samples captured in pure native test
	at test.nativelock.NativelockTests.nativeAllLockContention(NativelockTests.java:45)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at one.profiler.test.Runner.run(Runner.java:127)
	at one.profiler.test.Runner.main(Runner.java:193)

Expected vs. actual behavior

The test should not fail.

Reproduction Steps

GHA: https://github.com/async-profiler/async-profiler/actions/runs/20815237596/job/59789209581#step:11:259

Async-profiler version

master

Environment details

linux-arm64, corretto 21

Source: async-profiler/async-profiler