Summary: Make the biabduction machinery for detecting (biabduction) exceptions that can be swallowed recognise the one thrown by the restart scheduler. The dependency hierarchy requires declaring that exception in `base`. Reviewed By: jvillard Differential Revision: D28773898 fbshipit-source-id: 2136346damaster
parent
ec976d3be4
commit
64a5fbf14e
@ -0,0 +1,13 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
open! IStd
|
||||||
|
|
||||||
|
(** for the Restart scheduler: raise when a worker tries to analyze a procedure already being
|
||||||
|
analyzed by another process *)
|
||||||
|
exception ProcnameAlreadyLocked of {dependency_filename: string}
|
||||||
|
|
||||||
|
let is_not_restart_exception = function ProcnameAlreadyLocked _ -> false | _ -> true
|
@ -0,0 +1,14 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
open! IStd
|
||||||
|
|
||||||
|
(** for the Restart scheduler: raise when a worker tries to analyze a procedure already being
|
||||||
|
analyzed by another process *)
|
||||||
|
exception ProcnameAlreadyLocked of {dependency_filename: string}
|
||||||
|
|
||||||
|
val is_not_restart_exception : exn -> bool
|
||||||
|
(** check if the exception passed is the one defined above *)
|
Loading…
Reference in new issue