Skip to content
Snippets Groups Projects
Commit 3782c300 authored by David Bühler's avatar David Bühler Committed by Thibault Martin
Browse files

[Eva] Fine-tuning of the Ocaml GC, tested on several analyses from OSCS.

parent 4850a913
No related branches found
No related tags found
No related merge requests found
......@@ -177,9 +177,16 @@ let () =
~user_only:true (fun _ -> reset_analyzer ());
Project.register_after_global_load_hook reset_analyzer
let tune_gc () =
if Sys.ocaml_release.major >= 5 then
let minor_heap_size = 8192000 in
let space_overhead = 40 in
Gc.(set { (get ()) with minor_heap_size; space_overhead; })
(* Builds the analyzer if needed, and run the analysis. *)
let force_compute () =
Ast.compute ();
tune_gc ();
Parameters.configure_precision ();
if not (Kernel.AuditCheck.is_empty ()) then
Eva_audit.check_configuration (Kernel.AuditCheck.get ());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment