diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-05-02 20:20:53 +1000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-05-02 12:20:53 +0200 |
commit | 5c2a2f725dccd0c4616a042e29c5b9e95d004192 (patch) | |
tree | 3d22127f800562a9ec8e733fb1614e4252381904 /test/scaladoc/run/t5730.check | |
parent | 0db65ea0c4805cfa501c8300547aef318256dbf9 (diff) | |
download | scala-5c2a2f725dccd0c4616a042e29c5b9e95d004192.tar.gz scala-5c2a2f725dccd0c4616a042e29c5b9e95d004192.tar.bz2 scala-5c2a2f725dccd0c4616a042e29c5b9e95d004192.zip |
SD-142 Avoid noisy log output in backend (#5134)
`withCurrentUnit` is designed to be called once per
compilation unit as it side effects by logging and updating
progress counters.
`GenBCode` was calling it more frequently (once per `ClassDef`.)
This is due to the somewhat convoluted internal architecture
of that phase, which is designed to support paralellism in
the future.
This commit factors out the internal part of `withCompilationUnit`
that modifies `currentUnit`, and calls that instead in the loop
over classes.
After this change:
```
% qscala -Ydebug
...
[running phase jvm on <console>] // only once
```
Diffstat (limited to 'test/scaladoc/run/t5730.check')
0 files changed, 0 insertions, 0 deletions