-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly close Scala compiler classloaders in server and unit tests (#…
…3468) Previously we were just leaking the `URLClassLoaders`, which would give `CodeHeap 'non-profiled nmethods' is full. Compiler has been disabled.` in `scalajslib.test` and sometimes in actual usage for a long lived server. This PR ensures we `ZincWorkerImpl.close` actually calls `URLClassLoader.close`, and also replaced `val eval = UnitTester` in our test suite with `UnitTester.scoped{ eval =>` so we can ensure closing of the `UnitTester` and `URLClassLoader` after each test completes With this change, `scalajslib.test` no longer prints the above error. Hopefully it makes it stop happening in production as well. `scalajslib.test` also drops from 7.5min to 6.5min (and drops further to 5min when I removed Scala.js 1.3.1 from the test matrix)
- Loading branch information
Showing
38 changed files
with
1,087 additions
and
1,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.