diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-02-06 01:10:55 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-02-06 01:12:37 +0100 |
commit | 4d988825e41a789383bdb53b5ef4ac68e37ad96d (patch) | |
tree | 1c697acf5f8ebba7170290de554d8ee4e913df3b /src/dotty/tools/dotc/core/Contexts.scala | |
parent | e177e782ff12c2288d2e5323a0cd1c65447627e0 (diff) | |
download | dotty-4d988825e41a789383bdb53b5ef4ac68e37ad96d.tar.gz dotty-4d988825e41a789383bdb53b5ef4ac68e37ad96d.tar.bz2 dotty-4d988825e41a789383bdb53b5ef4ac68e37ad96d.zip |
Do not store context creation trace with -Ydebug
This makes the compiler extremely slow. To store the trace, you now need
to pass -Ytrace-context-creation
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index b205a40f0..9ccb03b89 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -255,7 +255,7 @@ object Contexts { private var creationTrace: Array[StackTraceElement] = _ private def setCreationTrace() = - if (this.settings.debug.value) + if (this.settings.YtraceContextCreation.value) creationTrace = (new Throwable).getStackTrace().take(20) /** Print all enclosing context's creation stacktraces */ |