-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Milestone
Description
The MacOS segfault that KC just fixed in ocaml/ocaml#11250 reveals that the threads module performs a number of side-effects when loaded. By having all three of our Lin interpretations (Domain,Thread,Fiber) in the same module requiring threads (even though it isn't used) this means
- we confine our test runs to those where
threadis always loaded and its callbacks are registered - see https://github.com/ocaml/ocaml/blob/37dec39a627b3b8abcf84c2463c64d2336b2bee6/otherlibs/systhreads/thread.ml#L87-L98 - Domain tests will run slower than necessary because of the overhead
The latter is naturally less serious than the first.
We should consider splitting the three interpretations up into separate files with separate dependencies such that only the Lin Thread interpretation requires threads.
Metadata
Metadata
Assignees
Labels
No labels