On Fri, 2 Oct 2026 00:08:46 GMT, Chris Plummer <[email protected]> wrote:

>> On macOS 26.6.2 and 27, all the SA process tests are failing with a timeout. 
>> I manually attached to a java process using clhsdb, and after the detach the 
>> debuggee process was left suspended, so this seems to be the issue causing 
>> the timeouts. Details in first comment.
>> 
>> - Tested with all svc tier1 through tier8 testing on macosx-aarch64-debug.
>> - Ran all SA tests on various mach5 hosts 50 times each on macosx-aarch64 
>> and macosx-aarch64-debug.
>> - Tested on macOS 26.6.2 personal device by running serviceability/sa 120 
>> times on combination of debug and product builds
>> - Tested on macOS 27 mach5 devices by running serviceability/sa 100 times.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Chris Plummer has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   simpler solution with usleep(10000) before detach

Marked as reviewed by sspitsyn (Reviewer).

Using `usleep` for 10 ms does not look completely reliable. Maybe a sleep loop 
with checks would be better. But I'm not sure that it is worth it. This 
approach is better than was before and testing seems to be proving it. So, I'm 
okay with the fix as is.

-------------

PR Review: https://git.openjdk.org/jdk/pull/33158#pullrequestreview-5390691329
PR Comment: https://git.openjdk.org/jdk/pull/33158#issuecomment-5950139819

Reply via email to