RFR: 8369920: HttpClient QuicSelectorThread could be a VirtualThread [v3]

Daniel Fuchs dfuchs at openjdk.org
Tue Nov 4 15:02:58 UTC 2025


> This change makes it possible to use a VirtualThread for the QuicSelectorThread. The default will be to use a VirtualThread on all platforms except the Windows platform. We might consider switching the default for Windows platform too once [JDK-8334574](https://bugs.openjdk.org/browse/JDK-8334574) is fixed.
> 
> The change should be transparent for users of the API. However, using a VirtualThread may result in subtle differences in thread scheduling and class loading, so this change also includes an escape hatch  (a non documented internal system property) that could be used to revert to a platform thread in case of unexpected issues.  That property may be removed in a future version of the JDK.

Daniel Fuchs has updated the pull request incrementally with 11 additional commits since the last revision:

 - Apply suggestion from @dfuch
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - Update test/jdk/java/net/httpclient/http3/H3QuicVTTest.java
   
   Co-authored-by: Volkan Yazıcı <volkan.yazici at oracle.com>
 - ... and 1 more: https://git.openjdk.org/jdk/compare/8a53537c...3a0b2a69

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27827/files
  - new: https://git.openjdk.org/jdk/pull/27827/files/8a53537c..3a0b2a69

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27827&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27827&range=01-02

  Stats: 16 lines in 2 files changed: 0 ins; 0 del; 16 mod
  Patch: https://git.openjdk.org/jdk/pull/27827.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27827/head:pull/27827

PR: https://git.openjdk.org/jdk/pull/27827


More information about the net-dev mailing list