# HG changeset patch # User kvn # Date 1415044960 28800 # Node ID 7024b693c8f9f3fdc75454c040ca0d2bdfe36bfc # Parent 28ab1380ec65d0425da9b33316e38a2966058297 8059780: SPECjvm2008-MPEG performance regressions on x64 platforms Summary: Back-out 8052081 changes made in lcm.cpp. Reviewed-by: iveresov, roland diff -r 28ab1380ec65 -r 7024b693c8f9 src/share/vm/opto/lcm.cpp --- a/src/share/vm/opto/lcm.cpp Thu Nov 06 12:05:43 2014 +0000 +++ b/src/share/vm/opto/lcm.cpp Mon Nov 03 12:02:40 2014 -0800 @@ -484,9 +484,7 @@ iop == Op_CreateEx || // Create-exception must start block iop == Op_CheckCastPP ) { - // select the node n - // remove n from worklist and retain the order of remaining nodes - worklist.remove((uint)i); + worklist.map(i,worklist.pop()); return n; } @@ -572,9 +570,7 @@ assert(idx >= 0, "index should be set"); Node *n = worklist[(uint)idx]; // Get the winner - // select the node n - // remove n from worklist and retain the order of remaining nodes - worklist.remove((uint)idx); + worklist.map((uint)idx, worklist.pop()); // Compress worklist return n; }