Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/graphKit.cpp @ 7196:2aff40cb4703
7092905: C2: Keep track of the number of dead nodes
Summary: keep an (almost) accurate running count of the reachable (live) flow graph nodes.
Reviewed-by: kvn, twisti, jrose, vlivanov
author | bharadwaj |
---|---|
date | Tue, 27 Nov 2012 17:24:15 -0800 |
parents | beebba0acc11 |
children | ad5dd04754ee |
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.cpp Tue Nov 27 12:48:52 2012 -0800 +++ b/src/share/vm/opto/graphKit.cpp Tue Nov 27 17:24:15 2012 -0800 @@ -153,7 +153,7 @@ void GraphKit::stop_and_kill_map() { SafePointNode* dead_map = stop(); if (dead_map != NULL) { - dead_map->disconnect_inputs(NULL); // Mark the map as killed. + dead_map->disconnect_inputs(NULL, C); // Mark the map as killed. assert(dead_map->is_killed(), "must be so marked"); } } @@ -1811,7 +1811,7 @@ } // Disconnect the call from the graph - call->disconnect_inputs(NULL); + call->disconnect_inputs(NULL, C); C->gvn_replace_by(call, C->top()); // Clean up any MergeMems that feed other MergeMems since the