changeset 22700:c63ce17e9915

Reduce option PEGraphDecoder.Options.InliningDepthError default value to 275 to avoid StackOverflowErrors on SPARC aG: changed graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/PEGraphDecoder.java ptions.InliningDepthError
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Fri, 25 Sep 2015 09:31:04 +0200
parents fbb8c5ee2a2c
children a610e5da2e28
files graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/PEGraphDecoder.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/PEGraphDecoder.java	Thu Sep 24 21:17:13 2015 -0700
+++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/PEGraphDecoder.java	Fri Sep 25 09:31:04 2015 +0200
@@ -104,8 +104,9 @@
 public abstract class PEGraphDecoder extends SimplifyingGraphDecoder {
 
     public static class Options {
-        @Option(help = "Maximum inlining depth during partial evaluation before reporting an infinite recursion")//
-        public static final OptionValue<Integer> InliningDepthError = new OptionValue<>(300);
+        // Default value of 275 is determined experimentally with default HotSpot stack sizes on
+        // SPARC and Intel
+        @Option(help = "Maximum inlining depth during partial evaluation before reporting an infinite recursion") public static final OptionValue<Integer> InliningDepthError = new OptionValue<>(275);
     }
 
     protected class PEMethodScope extends MethodScope {