Skip to content

Change early typeparams, take 3 #1031

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

Merged
merged 6 commits into from
Jan 17, 2016

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 16, 2016

This PR should supersede #1028 and is based on top of #1030

Review by @odersky

We're getting a lot of OutOfMemoryException when the maximum size is 1
GB, but we cannot increase it too much without using up all the memory
available on the Jenkins instances, let's see if 1.1 GB is enough.

Also stop using a custom -Xss, the default of 1 MB should be good enough.
@smarter smarter force-pushed the change-early-typeparams3 branch from 57ed489 to 5042ba3 Compare January 16, 2016 20:18
odersky and others added 5 commits January 16, 2016 21:26
I observed in a local partest a file with was a java.io.Path, not an SFile.
They should be treated like SFiles. Not clear why this came up. The file
in question (partest-generated/pos/Patterns_v1.scala) looked just like
all the others that were read as SFiles.
There was no reason in the first case to cache them, as their
equality is reference identity. Maybe this fixes the OOM errors
we encounter.
Need to also look info refined types.
Need to handle case where we hit a NoCompleter again.

Fixes scala#974 and makes MutableSortedSetFactory in stdlib compile.
Type params should be computed before computing the whole info of
a type. Without the patch we get a cyclic reference in the compileMixed
test.

Note that compileIndexedSeq does not pass with this commit (it passed
before), this is fixed in the next commit.
This makes compileIndexedSeq pass again.
@smarter smarter force-pushed the change-early-typeparams3 branch from 5042ba3 to 17dcd7c Compare January 16, 2016 20:27
odersky added a commit that referenced this pull request Jan 17, 2016
@odersky odersky merged commit ef5c50a into scala:master Jan 17, 2016
@smarter
Copy link
Member Author

smarter commented Jan 17, 2016

It's great that this got merged but there's still one unadressed comment from the previous version: https://github.com/lampepfl/dotty/pull/1028/files#r49922624

@allanrenucci allanrenucci deleted the change-early-typeparams3 branch December 14, 2017 16:58
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.

2 participants