RFR: 8277444: Race condition on Instrumentation.retransformClasses() and class linking [v3]

Jaikiran Pai jpai at openjdk.org
Wed Aug 27 11:30:44 UTC 2025


On Wed, 27 Aug 2025 11:17:50 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:

> MacOS test failures are known

The virtual thread test that is failing in this PR's GitHub actions job is `java/lang/Thread/virtual/stress/GetStackTraceALotWhenBlocking#id0` It has this:


javatestOS=Mac OS X 14.7.6 (aarch64)
javatestVersion=6.0-ea+b24-2025-08-18-${BUILT_FROM_COMMIT}
jtregVersion=jtreg 7.5.2 dev 0
...
#section:main
----------messages:(10/424)----------
command: main GetStackTraceALotWhenBlocking 100000
reason: User specified action: run main/othervm/timeout=300 GetStackTraceALotWhenBlocking 100000 
started: Tue Aug 26 14:24:40 UTC 2025
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.management
Process id: 21219
Timeout information:
--- Timeout information end.
finished: Tue Aug 26 14:47:22 UTC 2025
elapsed time (seconds): 1361.83
----------configuration:(3/42)----------
Boot Layer
  add modules: jdk.management

----------System.out:(1190/56017)----------
2025-08-26T14:24:41.601528Z => 48 of 100000
...
2025-08-26T14:44:37.436452Z => 99703 of 100000
2025-08-26T14:44:38.451885Z => 99752 of 100000
2025-08-26T14:44:39.474953Z => 99787 of 100000
Timeout signalled after 1200 seconds
2025-08-26T14:44:40.477403Z => 99833 of 100000
2025-08-26T14:44:41.478976Z => 99886 of 100000
2025-08-26T14:44:42.487173Z => 99931 of 100000
2025-08-26T14:44:43.495950Z => 99975 of 100000
2025-08-26T14:44:44.055060Z => 100000 of 100000
2025-08-26T14:44:44.055248Z VirtualThread[#27]/runnable at ForkJoinPool-1-worker-3 => 3904532796 loops
2025-08-26T14:44:44.055381Z VirtualThread[#23]/runnable at ForkJoinPool-1-worker-1 => 3293339644 loops
----------System.err:(1/15)----------
STATUS:Passed.
...
test result: Error. Program `/Users/runner/work/jdk/jdk/bundles/jdk/jdk-26.jdk/Contents/Home/bin/java' timed out (timeout set to 1200000ms, elapsed time including timeout handling was 1361819ms).


It looks like it's taking long to complete and that's causing the test timeout. I recollect that this test failure was addressed some time back, so this appears to be a new occurrence. In any case, this failure doesn't look related to the changes in this PR because I see some other PRs having failed with this same issue. I'll check and file an issue later today/tomorrow (unless anyone else gets to it first).

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

PR Comment: https://git.openjdk.org/jdk/pull/26863#issuecomment-3227818072


More information about the hotspot-dev mailing list