Skip to content

Disable context escape detection #312

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 1 commit into from
Dec 21, 2014

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 19, 2014

I get very frequent build failures due to the mutual Scala<->Java dependency in
context escape detection.
It builds for a long time, then decides that getCtx overrides nothing. The only
way to fix is another clean build. Total time lost: >5 minutes. These happened
occasionally before but have become much more frequent under ScalaIDE4.0, to the
point where this becomes a major drag on productity. Context escape detection
is nice but if it stops us getting work done, not worth the effort.

Review by @DarkDimius

I get very frequent build failures due to the mutual Scala<->Java dependency.
It builds for a long time, then decides that getCtx overrides nothing. The only
way to fix is another clean build. Total time lost: >5 minutes. These happened
occasionally before but have become much more frequent under ScalaIDe4.0, to the
point where this becomes a major drag on productity. Context escape detection
is nice but if it stops us getting work done, not worth the effort.
@DarkDimius
Copy link
Contributor

@odersky I'm not sure I understand what is the problem. Is it a bug in ScalaIDE? Would rewriting ContextEscapeDetection in scala help?

@odersky
Copy link
Contributor Author

odersky commented Dec 20, 2014

I think it's a bug in the SBT builder who chokes on the mutual Scala/Java dependencies in certain situations. Rewriting in Scala would probably help.

DarkDimius added a commit that referenced this pull request Dec 21, 2014
@DarkDimius DarkDimius merged commit 7b5d1b1 into scala:master Dec 21, 2014
OlivierBlanvillain pushed a commit to OlivierBlanvillain/dotty that referenced this pull request Dec 12, 2016
Disable tail call recursion for certain cases when compiling for MSIL to
adhere to CIL conventions
@allanrenucci allanrenucci deleted the disable-context-escape branch December 14, 2017 16:58
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Apr 29, 2025
Backport "Lazy val def member is pattern var" to 3.3 LTS
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