Skip to content

Commit dd9bc39

Browse files
committed
Make the ForkJoinTasks.defaultForkJoinPool delegate to ForkJoin.commonPool()
1 parent 03abdfb commit dd9bc39

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/scala/scala/collection/parallel

1 file changed

+1
-1
lines changed

core/src/main/scala/scala/collection/parallel/Tasks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ trait ForkJoinTasks extends Tasks with HavingForkJoinPool {
289289
}
290290

291291
object ForkJoinTasks {
292-
lazy val defaultForkJoinPool: ForkJoinPool = new ForkJoinPool()
292+
lazy val defaultForkJoinPool: ForkJoinPool = ForkJoinPool.commonPool()
293293
}
294294

295295
/* Some boilerplate due to no deep mixin composition. Not sure if it can be done differently without them.

0 commit comments

Comments
 (0)