KEMBAR78
CpuTests.itimerTotal test times out on mac · Issue #1161 · async-profiler/async-profiler · GitHub
Skip to content

CpuTests.itimerTotal test times out on mac #1161

@parttimenerd

Description

@parttimenerd

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:

Image

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; done

Additional 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions