Integrated: 8246039: SSLSocket HandshakeCompletedListeners are run on virtual threads

Carter Kozak github.com+3854321+carterkozak at openjdk.java.net
Sun Sep 20 08:08:10 UTC 2020


On Tue, 15 Sep 2020 19:03:08 GMT, Carter Kozak <github.com+3854321+carterkozak at openjdk.org> wrote:

> Previously each `SSLSocket.addHandshakeCompletedListener(HandshakeCompletedListener)`
> resulted in a new OS thread for each handshake which causes spikes in
> resource utilization and bottlenecks in high throughput systems.
> 
> Virtual threads should reduce the overhead while preserving behavior to
> the extent possible.
> 
> Reported to openjdk security-dev here:
> https://mail.openjdk.java.net/pipermail/security-dev/2020-July/022220.html

This pull request has now been integrated.

Changeset: 2a3a8446
Author:    Carter Kozak <ckozak at ckozak.net>
URL:       https://git.openjdk.java.net/loom/commit/2a3a8446
Stats:     7 lines in 1 file changed: 2 ins; 0 del; 5 mod

8246039: SSLSocket HandshakeCompletedListeners are run on virtual threads

Previously each `SSLSocket.addHandshakeCompletedListener(HandshakeCompletedListener)`
resulted in a new OS thread for each handshake which causes spikes in
resource utilization and bottlenecks in high throughput systems.

Virtual threads should reduce the overhead while preserving behavior to
the extent possible.

Reported to openjdk security-dev here:
https://mail.openjdk.java.net/pipermail/security-dev/2020-July/022220.html

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

PR: https://git.openjdk.java.net/loom/pull/16


More information about the loom-dev mailing list