changeset 18896:e7b84fac94c6

removed post-deserialization re-initialization of Graph.cachedLeafNodes
author Doug Simon <doug.simon@oracle.com>
date Tue, 20 Jan 2015 23:17:38 +0100
parents 65e1a9c42628
children 16ffeae58772
files graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java	Tue Jan 20 23:16:14 2015 +0100
+++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Graph.java	Tue Jan 20 23:17:38 2015 +0100
@@ -758,12 +758,6 @@
     @SuppressWarnings("unused")
     private void postDeserialization() {
         recomputeIterableNodeLists();
-
-        // CacheEntry.hashCode() is not stable across VM executions so
-        // the cachedLeafNodes map needs to be re-created.
-        HashMap<CacheEntry, Node> entries = new LinkedHashMap<>(cachedLeafNodes);
-        cachedLeafNodes.clear();
-        cachedLeafNodes.putAll(entries);
     }
 
     /**