-
Notifications
You must be signed in to change notification settings - Fork 937
Closed
Labels
Description
Describe the bug
The tests fail on Mac because p.profile("-d 2 -e itimer -i 1us --total -o collapsed") frequently runs longer than the 10-second timeout.
We observed the same effect on our internal test queue.
Expected vs. actual behavior
It should not time out, but it does. A sample for the runtime distribution on a M4 Pro MacBook:
Other runs observed runtimes up to 273 seconds.
Reproduction Steps
The following should produce failing tests regularly:
while true; do make JAVAC_TARGET=8 TESTS=test.cpu.CpuTests test; doneAdditional Information/Context
The behaviour can be observed on
Async-profiler version
master-branch at the time of writing
Environment details
MacBook Pro M4, JDKs 21.0.6 and 23 (all versions)
