File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed
Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1224,10 +1224,10 @@ let module AnalysisResults = {
12241224 /** apply [f] to [arg] with the gc compaction disabled during the execution */
12251225 let apply_without_gc f arg => {
12261226 let stat = Gc . get () ;
1227- let space_oh = stat. Gc . space_overhead;
1228- Gc . set {... stat, Gc . space_overhead: 10000 };
1227+ let space_oh = stat. space_overhead;
1228+ Gc . set {... stat, space_overhead: 10000 };
12291229 let res = f arg;
1230- Gc . set {... stat, Gc . space_overhead: space_oh};
1230+ Gc . set {... stat, space_overhead: space_oh};
12311231 res
12321232 };
12331233
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ let timeout_action _ =
8484 raise (SymOp. Analysis_failure_exe (FKtimeout ))
8585
8686let () =
87- (* Can't use Core since it wraps signal handlers with a catch-all exception handler that exits *)
87+ (* Can't use Core since it wraps signal handlers and alarms with catch-all exception handlers that
88+ exit, while we need to propagate the timeout exceptions. *)
89+ let module Gc = Caml. Gc in
8890 let module Sys = Caml. Sys in
8991 match Config. os_type with
9092 | Config. Unix | Config. Cygwin ->
Original file line number Diff line number Diff line change @@ -1387,8 +1387,8 @@ let post_parsing_initialization () =
13871387 let set_minor_heap_size nMb = (* increase the minor heap size to speed up gc *)
13881388 let ctrl = Gc. get () in
13891389 let words_of_Mb nMb = nMb * 1024 * 1024 * 8 / Sys. word_size in
1390- let new_size = max ctrl.Gc. minor_heap_size (words_of_Mb nMb) in
1391- Gc. set { ctrl with Gc. minor_heap_size = new_size }
1390+ let new_size = max ctrl.minor_heap_size (words_of_Mb nMb) in
1391+ Gc. set { ctrl with minor_heap_size = new_size }
13921392 in
13931393 set_minor_heap_size 8 ;
13941394
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module Caml = Core.Std.Caml
1818module Char = Core.Std. Char
1919module Filename = Core.Std. Filename
2020module Fn = Core.Std. Fn
21+ module Gc = Core.Std. Gc
2122module In_channel = Core.Std. In_channel
2223module Int = Core.Std. Int
2324module Option = Core.Std. Option
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module Caml = Core.Std.Caml
1818module Char = Core.Std. Char
1919module Filename = Core.Std. Filename
2020module Fn = Core.Std. Fn
21+ module Gc = Core.Std. Gc
2122module In_channel = Core.Std. In_channel
2223module Int = Core.Std. Int
2324module Option = Core.Std. Option
You can’t perform that action at this time.
0 commit comments