Skip to content

Commit 728ff77

Browse files
[GR-68103] Fix memory leak in SourceManager.verifiedPaths.
PullRequest: graal/21651
2 parents a76ff73 + 1eb6638 commit 728ff77

File tree

1 file changed

+1
-1
lines changed
  • substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private static Path computePrototypeName(String fileName, String packageName) {
159159
* A map from a Java type to an associated source paths which is known to have an up to date
160160
* entry in the relevant source file cache. This is used to memoize previous lookups.
161161
*/
162-
private static final ConcurrentHashMap<ResolvedJavaType, Path> verifiedPaths = new ConcurrentHashMap<>();
162+
private final ConcurrentHashMap<ResolvedJavaType, Path> verifiedPaths = new ConcurrentHashMap<>();
163163

164164
/**
165165
* An invalid path used as a marker to track failed lookups so we don't waste time looking up

0 commit comments

Comments
 (0)