Skip to content
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

2.8 regression: Stream.map() leaks memory #2265

Closed
scabug opened this issue Aug 17, 2009 · 2 comments
Closed

2.8 regression: Stream.map() leaks memory #2265

scabug opened this issue Aug 17, 2009 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Aug 17, 2009

2.8:

Welcome to Scala version 2.8.0.r18467-b20090812095157 (Java HotSpot(TM) Client VM, Java 1.5.0_20).
scala> val it = Stream.from(0).map(x => x).iterator; while(true) { it.next } 
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

the same code works fine in 2.7. the map() is crucial; without it the code doesn't run out of memory.

related: #692

@scabug
Copy link
Author

scabug commented Aug 17, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2265?orig=1
Reporter: @SethTisue

@scabug
Copy link
Author

scabug commented Aug 19, 2009

@dragos said:
Fixed by Martin in r18506.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants