diff src/share/vm/opto/matcher.cpp @ 11003:ac91879aa56f

Merge
author kvn
date Fri, 14 Jun 2013 16:33:34 -0700
parents f2110083203d 693e4d04fd09
children fcf521c3fbc6 f4f6ae481e1a
line wrap: on
line diff
--- a/src/share/vm/opto/matcher.cpp	Fri Jun 14 07:27:22 2013 -0700
+++ b/src/share/vm/opto/matcher.cpp	Fri Jun 14 16:33:34 2013 -0700
@@ -985,6 +985,8 @@
   mstack.push(n, Visit, NULL, -1);  // set NULL as parent to indicate root
 
   while (mstack.is_nonempty()) {
+    C->check_node_count(NodeLimitFudgeFactor, "too many nodes matching instructions");
+    if (C->failing()) return NULL;
     n = mstack.node();          // Leave node on stack
     Node_State nstate = mstack.state();
     if (nstate == Visit) {