RFR: 8306647: Implementation of Structured Concurrency (Preview)
Alan Bateman
alanb at openjdk.org
Tue May 23 15:31:24 UTC 2023
This is the implementation of:
- JEP 453: Structured Concurrency (Preview)
- JEP 446: Scoped Values (Preview)
For the most part, this is just moving code and tests. StructuredTaskScope moves to j.u.concurrent as a preview API, ScopedValue moves to j.lang as a preview API, and module jdk.incubator.concurrent has been removed. The significant API changes since incubator are:
- StructuredTaskScope.fork returns Subtask instead of Future (JEP 453 has a section on this)
- ScopedValue.where methods are replaced with runWhere, callWhere and getWhere
-------------
Commit messages:
- Test should not be in update for main line
- Sync with loom repo
- Sync up tests frmo loom repo
- Sync up with loom repo
- Sync update API/impl/tests
- Merge
- Sync up with loom repo
- Merge
- Initial commit
Changes: https://git.openjdk.org/jdk/pull/13932/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13932&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8306647
Stats: 9389 lines in 42 files changed: 4995 ins; 4330 del; 64 mod
Patch: https://git.openjdk.org/jdk/pull/13932.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13932/head:pull/13932
PR: https://git.openjdk.org/jdk/pull/13932
More information about the hotspot-dev
mailing list