Skip to content

Commit c43cf29

Browse files
authored
Merge pull request #200 from zakkak/2025-09-08-backport-186
[Backport] [Oracle GraalVM] [GR-68114] Backport to 23.1: Fix memory leak in SourceManager.verifiedPaths.
2 parents b495392 + 020d365 commit c43cf29

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)