New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insufficient task support detection mechanism chooses fails to choose ForkJoin even when available/supported #7237
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7237?orig=1 |
@soc said: |
@axel22 said: scala.util.Properties.isJavaAtLeast("1.7")) looks ok to me. Feel free to open a pull request. |
@soc said: |
@soc said: |
@soc said: Therefore, always use ForkJoinTaskSupport: 2.11: scala/scala#2249 |
@soc said: |
@adriaanm said: |
The check in https://github.com/scala/scala/blob/master/src/library/scala/collection/parallel/package.scala#L44 ...
... is not sufficient to choose the “best” task support library available.
Example case is Avian where, despite the existence of ForkJoin, ThreadPools are used.
One approach could be to check for
scala.util.Properties.isJavaAtLeast("1.7"))
and enable ForkJoin without further vendor checks, because one can reasonably expect that if a platform declares Java 7 support it actually does.The text was updated successfully, but these errors were encountered: