提交 a9408622 编写于 作者: V Victor Petukhov

Clear request cache properly during disposing component

上级 6f64fd2f
......@@ -49,6 +49,11 @@ class KotlinBinaryClassCache : Disposable {
}
override fun dispose() {
cache.get().apply {
result = null
virtualFile = null
}
// This is only relevant for tests. We create a new instance of Application for each test, and so a new instance of this service is
// also created for each test. However all tests share the same event dispatch thread, which would collect all instances of this
// thread-local if they're not removed properly. Each instance would transitively retain VFS resulting in OutOfMemoryError
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册