From 445bf3b186b3ca48008b0e5f3d70211d339cc7b0 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 --- .../com/google/devtools/ksp/processing/impl/ResolverImpl.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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..3fec116a71 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.processing.impl.KSObjectCacheManager.clear() + com.google.devtools.ksp.processing.KSObjectCacheManager.clear() instance = null }