From a01ada690c9d6a2e950db6298b8adcd59e54a227 Mon Sep 17 00:00:00 2001 From: Ben Lee Date: Sun, 17 Dec 2023 19:51:11 +0000 Subject: [PATCH] Clear both KSObjectCacheManager instances https://github.com/google/ksp/issues/1653 (cherry picked from commit 92d5905a863a8c796e55714d0f9da5e1f125f027) --- .../com/google/devtools/ksp/processing/impl/ResolverImpl.kt | 2 ++ 1 file changed, 2 insertions(+) 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 25e43c1063..54a839dbec 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 @@ -201,8 +201,10 @@ class ResolverImpl( // Mitigation for processors with memory leaks // https://github.com/google/ksp/issues/1063 + // https://github.com/google/ksp/issues/1653 fun tearDown() { KSObjectCacheManager.clear() + com.google.devtools.ksp.KSObjectCacheManager.clear() instance = null }