--- old/src/share/vm/opto/compile.cpp 2015-07-16 12:08:12.000000000 -0700 +++ new/src/share/vm/opto/compile.cpp 2015-07-16 12:08:12.000000000 -0700 @@ -3311,7 +3311,7 @@ // Visit everybody reachable! // Allocate stack of size C->unique()/2 to avoid frequent realloc - Node_Stack nstack(unique() >> 1); + Node_Stack nstack(live_nodes() >> 1); final_graph_reshaping_walk(nstack, root(), frc); // Check for unreachable (from below) code (i.e., infinite loops).