Skip to content

Commit b575c1e

Browse files
committed
Merge pull request scala#2348 from paulp/pr/2324-edit
SI-7237 Always choose ForkJoinTaskSupport
2 parents c0b3e58 + 29a9c64 commit b575c1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ package object parallel {
4141

4242
private[parallel] def outofbounds(idx: Int) = throw new IndexOutOfBoundsException(idx.toString)
4343

44-
private[parallel] def getTaskSupport: TaskSupport =
45-
if (scala.util.Properties.isJavaAtLeast("1.6")) new ForkJoinTaskSupport
46-
else new ThreadPoolTaskSupport
44+
private[parallel] def getTaskSupport: TaskSupport = new ForkJoinTaskSupport
4745

4846
val defaultTaskSupport: TaskSupport = getTaskSupport
4947

0 commit comments

Comments
 (0)