[jdk21u-dev] RFR: 8346175: juc cannot be woken up when using virtual thread [v3]

Jiawei Tang jwtang at openjdk.org
Fri Mar 7 06:24:18 UTC 2025


On Thu, 6 Mar 2025 12:26:50 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Jiawei Tang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   change date in testcases
>
> test/jdk/java/lang/Thread/virtual/JucSyncNativeMethod.java line 44:
> 
>> 42: import java.util.concurrent.locks.ReentrantLock;
>> 43: 
>> 44: public class JucSyncNativeMethod {
> 
> The tests in main line are test/jdk/java/util/concurrent/forkjoin/Starvation.jav and test/jdk/java/lang/Thread/virtual/Starvation.java, I assume you should be using those.

Yes, those two testcases can verify the code changes.

I changed the `synchronized` usage in the second testcase into juc lock since JDK21 has not apply JEP491. (There are pin problems with om.)

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

PR Review Comment: https://git.openjdk.org/jdk21u-dev/pull/1455#discussion_r1984515096


More information about the jdk-updates-dev mailing list