8325384: sun/security/ssl/SSLSessionImpl/ResumptionUpdateBoundValues.java failing intermittently when main thread is a virtual thread

Backport-of: da9c23ace9
This commit is contained in:
Amos Shi
2024-06-23 23:49:06 +00:00
committed by Vitaly Provodin
parent 5f54d970ba
commit 2cbe185ba2

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
* @library /test/lib /javax/net/ssl/templates
* @summary Test that a New Session Ticket will be generated when a
* SSLSessionBindingListener is set (boundValues)
* @key intermittent
* @run main/othervm ResumptionUpdateBoundValues
*/
@@ -238,7 +237,7 @@ public class ResumptionUpdateBoundValues extends SSLContextTemplate {
Thread t;
while ((t = threads.take()) != Thread.currentThread()) {
System.out.printf(" joining: %s%n", t);
t.join(1000L);
t.join(4000L);
}
serverReady = false;
System.gc();