Skip to content

parallel collections + object initialization = hang #8119

@scabug

Description

@scabug

This little poison pill:

val n = 0; for(i <- List(1).par) n

hangs the REPL in 2.9.3, 2.10.3, and 2.11.0-M7.

-Yrepl-sync doesn't help.

The collection type doesn't matter (List, Range, Vector, whatever).

Accessing n in the body is necessary.

Using semicolon to put it all on one line is necessary.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions