Skip to content

Commit

Permalink
Clear both KSObjectCacheManager instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes authored Dec 17, 2023
1 parent 7f854b8 commit 445bf3b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 445bf3b

Please sign in to comment.