Skip to content

Commit fcd604a

Browse files
committed
Merge pull request scala#2412 from soc/SI-7237-2.9
[backport] SI-7237 Always choose ForkJoinTaskSupport
2 parents 58961c7 + 63deb62 commit fcd604a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/library/scala/collection/parallel/package.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@ package object parallel {
4646
private[parallel] def outofbounds(idx: Int) = throw new IndexOutOfBoundsException(idx.toString)
4747

4848
private[parallel] def getTaskSupport: TaskSupport =
49-
if (util.Properties.isJavaAtLeast("1.6")) {
50-
val vendor = util.Properties.javaVmVendor
51-
if ((vendor contains "Oracle") || (vendor contains "Sun") || (vendor contains "Apple")) new ForkJoinTaskSupport
52-
else new ThreadPoolTaskSupport
53-
} else new ThreadPoolTaskSupport
49+
if (scala.util.Properties.isJavaAtLeast("1.6")) new ForkJoinTaskSupport
50+
else new ThreadPoolTaskSupport
5451

5552
val tasksupport = getTaskSupport
5653

0 commit comments

Comments
 (0)