RFR: 8320198: some reference processing tests don't wait long enough for reference processing to complete
Joe Darcy
darcy at openjdk.org
Mon Dec 4 20:53:34 UTC 2023
On Mon, 4 Dec 2023 17:46:18 GMT, Tom Rodriguez <never at openjdk.org> wrote:
> This slightly increases the wait for reference processing to complete to accommodate long Xcomp compile times. Testing is underway.
test/jdk/java/lang/Object/FinalizationOption.java line 92:
> 90: System.gc();
> 91: try {
> 92: Thread.sleep(30L);
I think it would be better to scale these kinds of sleep time bounds by the timeout factor used to run the jtreg test, which should already to scaled up for known-to-be-slower testing scenarios.
There is a utility method to return this value in jdk/test/lib/Utils.java
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16956#discussion_r1414480356
More information about the core-libs-dev
mailing list