Skip to content

Commit 74bc0fc

Browse files
committed
nullify maps after analysis in ReflectionDataBuilder
1 parent 1905753 commit 74bc0fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/reflect/ReflectionDataBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ public class ReflectionDataBuilder extends ConditionalConfigurationRegistry impl
145145
private final Map<Class<?>, Throwable> recordComponentsLookupExceptions = new ConcurrentHashMap<>();
146146

147147
// Intermediate bookkeeping
148-
private final Map<Type, Set<Integer>> processedTypes = new ConcurrentHashMap<>();
149-
private final Map<Class<?>, Set<Method>> pendingRecordClasses;
148+
private Map<Type, Set<Integer>> processedTypes = new ConcurrentHashMap<>();
149+
private Map<Class<?>, Set<Method>> pendingRecordClasses;
150150

151151
record ConditionalTask(ConfigurationCondition condition, Consumer<ConfigurationCondition> task) {
152152
}
@@ -1133,9 +1133,9 @@ private static void reportLinkingErrors(Class<?> clazz, List<Throwable> errors)
11331133

11341134
protected void afterAnalysis() {
11351135
sealed = true;
1136-
processedTypes.clear();
1136+
processedTypes = null;
11371137
if (!throwMissingRegistrationErrors()) {
1138-
pendingRecordClasses.clear();
1138+
pendingRecordClasses = null;
11391139
}
11401140
}
11411141

0 commit comments

Comments
 (0)