WeakReferenceTest timeout error with -Xint

Nick Gasson (Arm Technology China) Nick.Gasson at arm.com
Wed Dec 12 04:20:01 UTC 2018


I've seen a problem recently where WeakReferenceTest can
intermittently fail with the following error on some slow Arm systems
when run with -Xint. It's been failing since changeset
420:6510f53ebe89 "Further tune-ups for interrupt.WeakReferenceTest for
concurrent GCs".

  org.openjdk.jcstress.tests.interrupt.WeakReferenceTest [-Xint]: Observed forbidden state: STALE (Thread had failed to respond.)

I think it's timing out simply because the busy loop in the work()
method takes too long (several seconds on the system I measured). You
can get a similar failure on x86 by increasing the number of

Is it possible to make a small change to the test to reduce the
number of iterations to e.g. 10_000_000 if the JVM is running
with -Xint? E.g. ManagementFactory.getRuntimeMXBean().getInputArguments().contains("-Xint")
or similar. Or simply increase the timeout for this test?


More information about the jcstress-dev mailing list