On Thu, 5 Sep 2024 17:59:50 GMT, David M. Lloyd <d...@openjdk.org> wrote:

> The API docs don't seem to specify what a value of `-1` means; is it meant to 
> indicate "not known"? It seems like other implementations are returning e.g. 
> `MAX_VALUE` sometimes too; is that worth calling out in the doc for 
> `getParallelism()`?

That can't happen right now as there is no support for configuring a different 
virtual thread scheduler in main line. So this could throw an "should not reach 
here" Error. If we were to expose something then it would include a side 
channel to obtain the management interface for that scheduler.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20816#discussion_r1745980908

Reply via email to