Skip to content

Commit 39c96b9

Browse files
committed
remove code redundant with use of @NotExternalValue annotation
1 parent f049214 commit 39c96b9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/CompilerConfig.java

-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.List;
3535
import java.util.Locale;
3636

37-
import jdk.graal.compiler.nodes.GraphEncoder;
3837
import org.graalvm.collections.EconomicMap;
3938
import org.graalvm.collections.MapCursor;
4039

@@ -82,11 +81,6 @@ public static void main(String[] args) throws Exception {
8281
EncodedSnippets encodedSnippets = getEncodedSnippets(replacements, options);
8382
List<Field> externalValueFields = ObjectCopier.getExternalValueFields();
8483

85-
// The NodeClassMap value read from GraphEncoder.GLOBAL_NODE_CLASS_MAP
86-
// must not be treated as an external value when being serialized
87-
// across processes.
88-
externalValueFields.remove(ObjectCopier.getField(GraphEncoder.class, "GLOBAL_NODE_CLASS_MAP"));
89-
9084
EconomicMap<String, Object> encodedObjects = EconomicMap.create();
9185
encodedObjects.put("encodedSnippets", encodedSnippets);
9286
encodedObjects.put("snippetNodeClasses", snippetNodeClassesToJSON(encodedSnippets));

0 commit comments

Comments
 (0)