Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304919

Implementation of Virtual Threads

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 21
    • None
    • core-libs
    • b18

    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.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: