Custom Schedulers use-case

Alan Bateman alan.bateman at oracle.com
Sat Oct 18 08:15:39 UTC 2025


On 18/10/2025 00:13, Man Cao wrote:
> Thanks for the detailed response. We hope OpenJDK will commit to 
> supporting custom schedulers at some point.

Do you know if David/Firestore team have tried one or both of the 
prototypes in the loom repo? It would be helpful to this project to know 
what they have tried, what worked and didn't work. I think it would at 
least be useful to know if they have tried setting the virtual thread 
scheduler to a deterministic stride scheduler.

I think it would also be useful to expand on the comment about 
antagonistic workloads and if that assumes a means to do forced 
preemption. There is a prototype support for forced preemption but going 
further would require detailed changes in several core areas of the JDK 
and some features for a scheduler to control it.

-Alan


More information about the loom-dev mailing list