8338890: Add monitoring/management interface for the virtual thread scheduler

Reviewed-by: kevinw
This commit is contained in:
Alan Bateman 2024-09-10 07:23:35 +00:00
parent 5e822c24bb
commit 7e2bcf6d00
23 changed files with 711 additions and 53 deletions

View file

@ -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.
*/