[GRADLE-3368] CachingPatternSpecFactory uses a lot of memory Created: 03/Dec/15  Updated: 03/Dec/15  Resolved: 03/Dec/15

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.10-rc-1

Type: Bug
Reporter: Sterling Greene Assignee: Lari Hotari
Resolution: Fixed Votes: 0

Known Issue Of:
2.9

 Description   

https://discuss.gradle.org/t/cachingpatternspecfactory-does-occupy-to-much-heap-space/12932

The memory usage problem is caused by duplicate String instances in all of the RelativePath instances. The fix is to use the StringInterner based on Guava's WeakInterner to de-duplicate the String instances (path segments) that are referenced by the RelativePath instances.
This problem affects zipTree and tarTree. It also affects all file tree operations on JDK 6.


Generated at Wed Jun 30 12:46:58 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.