Skip to content

Commit ab6a969

Browse files
committed
When threads.posix exists we really need thread-local-storage
`thread-local-storage` is needed for correct operation when `threads.posix` exists. TLS is used to store the fiber identity with `picos.threaded` and that breaks without proper TLS. I've now run into this a couple of times that I missed `thread-local-storage` from the switch and that unfortunately allowed an invalid build where `threads.posix` (and hence systhreads) existed without `thread-local-storage`.
1 parent 2b15a35 commit ab6a969

File tree

1 file changed

+1
-1
lines changed
  • lib/picos_thread

1 file changed

+1
-1
lines changed

lib/picos_thread/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
tls.ml
1414
from
1515
(thread-local-storage -> tls.thread-local-storage.ml)
16-
(picos.domain -> tls.dls.ml))))
16+
(picos.domain !threads.posix -> tls.dls.ml))))
1717

1818
(rule
1919
(enabled_if

0 commit comments

Comments
 (0)