src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/DebugConfigImpl.java
changeset 50330 2cbc42a5764b
parent 49873 26ebfe8ce852
child 50858 2d3e99a72541
equal deleted inserted replaced
50329:18fba780c1d1 50330:2cbc42a5764b
   237         }
   237         }
   238     }
   238     }
   239 
   239 
   240     @Override
   240     @Override
   241     public RuntimeException interceptException(DebugContext debug, Throwable e) {
   241     public RuntimeException interceptException(DebugContext debug, Throwable e) {
   242         if (e instanceof BailoutException && !DebugOptions.InterceptBailout.getValue(options)) {
   242         if (e instanceof BailoutException) {
   243             return null;
   243             final boolean causedByCompilerAssert = e instanceof CausableByCompilerAssert && ((CausableByCompilerAssert) e).isCausedByCompilerAssert();
       
   244             if (!DebugOptions.InterceptBailout.getValue(options) && !causedByCompilerAssert) {
       
   245                 return null;
       
   246             }
   244         }
   247         }
   245 
   248 
   246         OptionValues interceptOptions = new OptionValues(options,
   249         OptionValues interceptOptions = new OptionValues(options,
   247                         DebugOptions.Count, null,
   250                         DebugOptions.Count, null,
   248                         DebugOptions.Time, null,
   251                         DebugOptions.Time, null,