We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2503291 commit 9e9f7e6Copy full SHA for 9e9f7e6
test/dotty/partest/DPDirectCompiler.scala
@@ -35,7 +35,9 @@ class DPDirectCompiler(runner: DPTestRunner) extends nest.DirectCompiler(runner)
35
}
36
} catch {
37
case t: Throwable =>
38
- t.printStackTrace
+ if (t.isInstanceOf[java.lang.OutOfMemoryError])
39
+ println(s"total memory = "+ Runtime.getRuntime().totalMemory / (1024*1024) +"mb")
40
+ t.printStackTrace()
41
t.printStackTrace(clogWriter)
42
runner.genCrash(t)
43
} finally {
0 commit comments