< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/GraalCompilerOptions.java

Print this page




  30 
  31 /**
  32  * Options related to {@link GraalCompiler}.
  33  */
  34 public class GraalCompilerOptions {
  35 
  36     // @formatter:off
  37     @Option(help = "Print an informational line to the console for each completed compilation.", type = OptionType.Debug)
  38     public static final OptionKey<Boolean> PrintCompilation = new OptionKey<>(false);
  39     @Option(help = "Pattern for method(s) that will trigger an exception when compiled. " +
  40                    "This option exists to test handling compilation crashes gracefully. " +
  41                    "See the MethodFilter option for the pattern syntax. ", type = OptionType.Debug)
  42     public static final OptionKey<String> CrashAt = new OptionKey<>(null);
  43     @Option(help = "file:doc-files/CompilationBailoutActionHelp.txt", type = OptionType.User)
  44     public static final EnumOptionKey<ExceptionAction> CompilationBailoutAction = new EnumOptionKey<>(ExceptionAction.Silent);
  45     @Option(help = "Specifies the action to take when compilation fails with a bailout exception. " +
  46                     "The accepted values are the same as for CompilationBailoutAction.", type = OptionType.User)
  47      public static final EnumOptionKey<ExceptionAction> CompilationFailureAction = new EnumOptionKey<>(ExceptionAction.Diagnose);
  48     @Option(help = "The maximum number of compilation failures or bailouts to handle with the action specified " +
  49                    "by CompilationFailureAction or CompilationBailoutAction before changing to a less verbose action.", type = OptionType.User)
  50     public static final OptionKey<Integer> MaxCompilationProblemsPerAction = new OptionKey<>(5);
  51     @Option(help = "Alias for CompilationFailureAction=ExitVM.", type = OptionType.User)
  52     public static final OptionKey<Boolean> ExitVMOnException = new OptionKey<>(false);
  53     // @formatter:on
  54 }


  30 
  31 /**
  32  * Options related to {@link GraalCompiler}.
  33  */
  34 public class GraalCompilerOptions {
  35 
  36     // @formatter:off
  37     @Option(help = "Print an informational line to the console for each completed compilation.", type = OptionType.Debug)
  38     public static final OptionKey<Boolean> PrintCompilation = new OptionKey<>(false);
  39     @Option(help = "Pattern for method(s) that will trigger an exception when compiled. " +
  40                    "This option exists to test handling compilation crashes gracefully. " +
  41                    "See the MethodFilter option for the pattern syntax. ", type = OptionType.Debug)
  42     public static final OptionKey<String> CrashAt = new OptionKey<>(null);
  43     @Option(help = "file:doc-files/CompilationBailoutActionHelp.txt", type = OptionType.User)
  44     public static final EnumOptionKey<ExceptionAction> CompilationBailoutAction = new EnumOptionKey<>(ExceptionAction.Silent);
  45     @Option(help = "Specifies the action to take when compilation fails with a bailout exception. " +
  46                     "The accepted values are the same as for CompilationBailoutAction.", type = OptionType.User)
  47      public static final EnumOptionKey<ExceptionAction> CompilationFailureAction = new EnumOptionKey<>(ExceptionAction.Diagnose);
  48     @Option(help = "The maximum number of compilation failures or bailouts to handle with the action specified " +
  49                    "by CompilationFailureAction or CompilationBailoutAction before changing to a less verbose action.", type = OptionType.User)
  50     public static final OptionKey<Integer> MaxCompilationProblemsPerAction = new OptionKey<>(2);
  51     @Option(help = "Alias for CompilationFailureAction=ExitVM.", type = OptionType.User)
  52     public static final OptionKey<Boolean> ExitVMOnException = new OptionKey<>(false);
  53     // @formatter:on
  54 }
< prev index next >