Integrated: Ensure vthread has connected to server
Miao Zheng
github.com+20216587+miao-zheng at openjdk.java.net
Mon Sep 6 12:41:46 UTC 2021
On Mon, 6 Sep 2021 04:56:24 GMT, Miao Zheng <github.com+20216587+miao-zheng at openjdk.org> wrote:
> I have run the test case of InterruptHttp.java in fast debug version of jdk with options:
> -XX:+UseG1GC -XX:+ScavengeALot -XX:ScavengeALotInterval=200 -XX:-GCALotAtAllSafepoints
>
> And the test case failed, The output is "Execution failed: `main' threw exception: java.lang.RuntimeException: Expected 1 HTTP connection"
>
> The reason is Thread.sleep(1000) can not ensure that vthread has connected to server when using some options and fastdebug version of jdk.
>
> So, I fix this to ensure vthread has connected to server.
This pull request has now been integrated.
Changeset: 420f9897
Author: miao zheng <emoryzheng at tencent.com>
Committer: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.java.net/loom/commit/420f989798b9e5eb429012b57c5bee1a24b4c167
Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
Ensure vthread has connected to server
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/loom/pull/60
More information about the loom-dev
mailing list