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 = {
1224
1224
/** apply [f] to [arg] with the gc compaction disabled during the execution */
1225
1225
let apply_without_gc f arg => {
1226
1226
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 };
1229
1229
let res = f arg;
1230
- Gc . set {... stat, Gc . space_overhead: space_oh};
1230
+ Gc . set {... stat, space_overhead: space_oh};
1231
1231
res
1232
1232
};
1233
1233
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ let timeout_action _ =
84
84
raise (SymOp. Analysis_failure_exe (FKtimeout ))
85
85
86
86
let () =
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
88
90
let module Sys = Caml. Sys in
89
91
match Config. os_type with
90
92
| Config. Unix | Config. Cygwin ->
Original file line number Diff line number Diff line change @@ -1387,8 +1387,8 @@ let post_parsing_initialization () =
1387
1387
let set_minor_heap_size nMb = (* increase the minor heap size to speed up gc *)
1388
1388
let ctrl = Gc. get () in
1389
1389
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 }
1392
1392
in
1393
1393
set_minor_heap_size 8 ;
1394
1394
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module Caml = Core.Std.Caml
18
18
module Char = Core.Std. Char
19
19
module Filename = Core.Std. Filename
20
20
module Fn = Core.Std. Fn
21
+ module Gc = Core.Std. Gc
21
22
module In_channel = Core.Std. In_channel
22
23
module Int = Core.Std. Int
23
24
module Option = Core.Std. Option
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module Caml = Core.Std.Caml
18
18
module Char = Core.Std. Char
19
19
module Filename = Core.Std. Filename
20
20
module Fn = Core.Std. Fn
21
+ module Gc = Core.Std. Gc
21
22
module In_channel = Core.Std. In_channel
22
23
module Int = Core.Std. Int
23
24
module Option = Core.Std. Option
You can’t perform that action at this time.
0 commit comments