Skip to content

[JDK21+] Increase wait time in VirtualThreadTests - #17928

Merged
pshipton merged 1 commit into
eclipse-openj9:masterfrom
babsingh:add_incremental_delays_vthreadtests
Aug 10, 2023
Merged

[JDK21+] Increase wait time in VirtualThreadTests#17928
pshipton merged 1 commit into
eclipse-openj9:masterfrom
babsingh:add_incremental_delays_vthreadtests

Conversation

@babsingh

@babsingh babsingh commented Aug 9, 2023

Copy link
Copy Markdown
Contributor

The wait time has been increased from 500 ms to 10000 ms. This should
give the virtual thread sufficient time to park on slower machines.

This impacts the following tests:

  • test_synchronizedBlockFromVirtualthread
  • test_jniFromVirtualthread

test_YieldedVirtualThreadGetStackTrace was earlier updated
in #17194.

Fixes: #17924

Signed-off-by: Babneet Singh sbabneet@ca.ibm.com

@babsingh

babsingh commented Aug 9, 2023

Copy link
Copy Markdown
Contributor Author

@pshipton @fengxue-IS Requesting your review.

@fengxue-IS fengxue-IS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I am going to assume the Java19andUp version of this test is obsolete.

@babsingh

babsingh commented Aug 9, 2023

Copy link
Copy Markdown
Contributor Author

I am going to assume the Java19andUp version of this test is obsolete.

Yes, Java19andUp and Java20andUp versions are obsolete since we no longer support the associated Java versions.

Comment thread test/functional/Java21andUp/src/org/openj9/test/jep425/VirtualThreadTests.java Outdated
The wait time has been increased from 500 ms to 10000 ms. This should
give the virtual thread sufficient time to park on slower machines.

This impacts the following tests:
- test_synchronizedBlockFromVirtualthread
- test_jniFromVirtualthread

test_YieldedVirtualThreadGetStackTrace was earlier updated
in eclipse-openj9#17194.

Fixes: eclipse-openj9#17924

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
babsingh force-pushed the add_incremental_delays_vthreadtests branch from 4c35324 to d6c6a06 Compare August 10, 2023 13:29
@pshipton

Copy link
Copy Markdown
Member

Tested in grinder https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/2667/, which passed.

@pshipton
pshipton merged commit e4258d8 into eclipse-openj9:master Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jep425Tests_testVirtualThread expected [WAITING] but found [RUNNABLE]

3 participants