JDK-8304919 : Implementation of Virtual Threads
  • Type: Enhancement
  • Component: core-libs
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-03-25
  • Updated: 2023-05-01
  • Resolved: 2023-04-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b18Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
Summary of changes:

- Drop Thread.Builder.allowSetThreadLocals(boolean).
- Thread.ofVirtual, Thread.startVirtualThread, Executors.newVirtualThreadThread and other APIs that create virtual threads no longer throw UOE.
- Update @since to 21, and the equivalent in the JNI, JVMDI and JDWP specs. JEP 12 provides the guidance on this.
- Add @Hidden to a number of methods to reduce noise in stack traces, exposes a few bugs in stack walker
- A few robustness improvements for OOME and SOE scenarios.
- New system property to print a trace dump when virtual thread sets its own value of a TL.
- Update tests to drop @enablePreview/--enable-preview.  This includes:
     - Infrastructure for debugger tests no longer launches debuggee with --enable-preview.
     - Updates to a small number of tests to allow them run with main wrapper plugin (CODETOOLS-7903373).
- Keep jdk.internal.javac.PreviewFeature.Feature.VIRTUAL_THREADS until JDK 22.
Comments
Changeset: 2586f361 Author: Alan Bateman <alanb@openjdk.org> Date: 2023-04-11 05:49:54 +0000 URL: https://git.openjdk.org/jdk/commit/2586f36120317cd206464b1e79d3906f711487cb
11-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13203 Date: 2023-03-28 07:28:01 +0000
28-03-2023