Skip to content

SI-8691 SeqView throws exception when prepending a collection#4153

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
Ichoran:issue/8691
Dec 18, 2014
Merged

SI-8691 SeqView throws exception when prepending a collection#4153
lrytz merged 1 commit intoscala:2.12.xfrom
Ichoran:issue/8691

Conversation

@Ichoran
Copy link
Contributor

@Ichoran Ichoran commented Nov 24, 2014

Prepend was throwing segfaults as it was handled differently from Append. This brings the two into line with each other.

There are various optimizations that could be applied that have not been, however, such as intercepting sequential prepends and generating one multi-prepend instead of nested single-element prepends.

@scala-jenkins scala-jenkins added this to the 2.12.0-M1 milestone Nov 24, 2014
@adriaanm adriaanm self-assigned this Nov 24, 2014
@lrytz
Copy link
Member

lrytz commented Dec 4, 2014

The patch should also add a test.

Prepend was throwing segfaults as it was handled differently from Append.  This brings the two into line with each other.

There are various optimizations that could be applied that have not been, however, such as intercepting sequential prepends and generating one multi-prepend instead of nested single-element prepends.

Unit test added to verify minimally that bug is gone.
@Ichoran
Copy link
Contributor Author

Ichoran commented Dec 6, 2014

[~lrytz] Test added. (Collections laws should get all the variants eventually.)

@lrytz
Copy link
Member

lrytz commented Dec 18, 2014

LGTM!

lrytz added a commit that referenced this pull request Dec 18, 2014
SI-8691  SeqView throws exception when prepending a collection
@lrytz lrytz merged commit 333dfbd into scala:2.12.x Dec 18, 2014
@adriaanm adriaanm added the 2.12 label Oct 29, 2016
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

Successfully merging this pull request may close these issues.

4 participants