mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8338890: Add monitoring/management interface for the virtual thread scheduler
Reviewed-by: kevinw
This commit is contained in:
parent
5e822c24bb
commit
7e2bcf6d00
23 changed files with 711 additions and 53 deletions
|
@ -142,6 +142,14 @@ final class VirtualThread extends BaseVirtualThread {
|
|||
// termination object when joining, created lazily if needed
|
||||
private volatile CountDownLatch termination;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the default scheduler.
|
||||
*/
|
||||
static Executor defaultScheduler() {
|
||||
return DEFAULT_SCHEDULER;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the continuation scope used for virtual threads.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue