aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lee <ben@ben.cm>2023-12-11 13:45:26 -0800
committerKSP Auto Pick <kotlin-symbol-processing@google.com>2023-12-14 03:15:31 +0000
commit16b8b616552d83407743fb1c6d6c295588449a98 (patch)
tree75feba2d16388ff49d14b668e183c6e38b2567fa
parent0a84e7be71955cdf0c9bd5b3d36cf4b769cd871c (diff)
downloadksp-16b8b616552d83407743fb1c6d6c295588449a98.tar.gz
Clear KSObjectCacheManager during resolver tear down
(cherry picked from commit f4ca61a0e1264045381251b6a1c97209ff291fa0)
-rw-r--r--compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/ResolverImpl.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/ResolverImpl.kt b/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/ResolverImpl.kt
index b6c1c5e0..25e43c10 100644
--- a/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/ResolverImpl.kt
+++ b/compiler-plugin/src/main/kotlin/com/google/devtools/ksp/processing/impl/ResolverImpl.kt
@@ -202,6 +202,7 @@ class ResolverImpl(
// Mitigation for processors with memory leaks
// https://github.com/google/ksp/issues/1063
fun tearDown() {
+ KSObjectCacheManager.clear()
instance = null
}