1.1 --- a/src/share/vm/opto/phaseX.hpp Fri Nov 27 07:56:58 2009 -0800 1.2 +++ b/src/share/vm/opto/phaseX.hpp Thu Nov 12 09:24:21 2009 -0800 1.3 @@ -345,7 +345,11 @@ 1.4 Node *hash_find(const Node *n) { return _table.hash_find(n); } 1.5 1.6 // Used after parsing to eliminate values that are no longer in program 1.7 - void remove_useless_nodes(VectorSet &useful) { _table.remove_useless_nodes(useful); } 1.8 + void remove_useless_nodes(VectorSet &useful) { 1.9 + _table.remove_useless_nodes(useful); 1.10 + // this may invalidate cached cons so reset the cache 1.11 + init_con_caches(); 1.12 + } 1.13 1.14 virtual ConNode* uncached_makecon(const Type* t); // override from PhaseTransform 1.15