RFR: 8284161: Implementation of Virtual Threads (Preview) [v14]
Alan Bateman
alanb at openjdk.java.net
Sat May 7 06:04:51 UTC 2022
> This is the implementation of JEP 425: Virtual Threads (Preview).
>
> We will refresh this PR periodically to pick up changes and fixes from the loom repo.
>
> Most of the new mechanisms in the HotSpot VM are disabled by default and require running with `--enable-preview` to enable.
>
> The patch has support for x64 and aarch64 on the usual operating systems (Linux, macOS, and Windows). There are stubs (calling _Unimplemented_) for zero and some of the other ports. Additional ports can be contributed via PRs against the fibers branch in the loom repo.
>
> There are changes in many areas. To reduce notifications/mails, the labels have been trimmed down for now to hotspot, serviceability and core-libs. We can add additional labels, if required, as the PR progresses.
>
> The changes include a refresh of java.util.concurrent and ForkJoinPool from Doug Lea's CVS. These changes will probably be proposed and integrated in advance of this PR.
>
> The changes include some non-exposed and low-level infrastructure to support the (in draft) JEPs for Structured Concurrency and Extent Locals. This is to make life a bit easier and avoid having to separate VM changes and juggle branches at this time.
Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 23 commits:
- Refresh 4e99b5185eef9398c4cc4e90544de4a3153d61a9
- Merge with 5212535a276a92d96ca20bdcfccfbce956febdb1
- Refresh 6ace49bf42e5504c69fa11c564e8e865c0a95fb3
- Merge with 9425ab2b43b649bd591706bfc820e9c8795a6fdf
- Refresh 12aa09ce7efd48425cc080d0b8761aca0f3e215f
- Merge with 1bb4de2e2868a539846ec48dd43fd623c2ba69a5
- Refresh d77f7a49af75bcc5b20686805ff82a93a20dde05
- Merge with 4b2c82200fdc01de868cf414e40a4d891e753f89
- Refresh 6091080db743ece5f1b2111fcc35a5f2179a403a
- Merge with cfcba1fccc8e3e6a68e1cb1826b70e076d5d83c4
- ... and 13 more: https://git.openjdk.java.net/jdk/compare/5212535a...df43e6fc
-------------
Changes: https://git.openjdk.java.net/jdk/pull/8166/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8166&range=13
Stats: 99468 lines in 1133 files changed: 91198 ins; 3598 del; 4672 mod
Patch: https://git.openjdk.java.net/jdk/pull/8166.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8166/head:pull/8166
PR: https://git.openjdk.java.net/jdk/pull/8166
More information about the serviceability-dev
mailing list