JLANG-23 round up the maximum number of threads, if its not a power of 2
Merge remote-tracking branch 'origin/master'