Skip to content

Commit 020d365

Browse files
christianhaeublzakkak
authored andcommitted
Fix memory leak in SourceManager.verifiedPaths.
(cherry picked from commit 1eb663808c9ba1b80bc2f1bb5ad9d09e87bbc50e) Adapted to community code that uses HashMap instead of ConcurrrentHashMap
1 parent 4e39f63 commit 020d365

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
@@ -160,7 +160,7 @@ private static Path computePrototypeName(String fileName, String packageName) {
160160
* A map from a Java type to an associated source paths which is known to have an up to date
161161
* entry in the relevant source file cache. This is used to memoize previous lookups.
162162
*/
163-
private static HashMap<ResolvedJavaType, Path> verifiedPaths = new HashMap<>();
163+
private HashMap<ResolvedJavaType, Path> verifiedPaths = new HashMap<>();
164164

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

0 commit comments

Comments
 (0)