diff src/share/vm/opto/escape.cpp @ 20671:9e69e8d1c900

8058148: MaxNodeLimit and LiveNodeCountInliningCutoff Reviewed-by: kvn, roland
author vlivanov
date Mon, 24 Nov 2014 07:29:03 -0800
parents 90297adbda9d
children f913964f3fde
line wrap: on
line diff
--- a/src/share/vm/opto/escape.cpp	Tue Nov 11 04:46:13 2014 -0800
+++ b/src/share/vm/opto/escape.cpp	Mon Nov 24 07:29:03 2014 -0800
@@ -2409,7 +2409,7 @@
       }
     }
   }
-  if ((int) (C->live_nodes() + 2*NodeLimitFudgeFactor) > MaxNodeLimit) {
+  if (C->live_nodes() + 2*NodeLimitFudgeFactor > C->max_node_limit()) {
     if (C->do_escape_analysis() == true && !C->failing()) {
       // Retry compilation without escape analysis.
       // If this is the first failure, the sentinel string will "stick"