Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W42.2026 · 12–18 Oct

Multicore repository summaries

2 active · 7 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio_unix.set_signal (merged, #956): Installs signal handlers that wake the scheduler via a pipe, fixing a race where signals arriving just before poll(2) were delayed until the next timer. Closes #732 and #946; supersedes #948.

  • Flow.Pi.simple_copy (merged, #954): Uses Read_source_buffer when the source supports it, avoiding an intermediate buffer allocation. New Eio_mock.Flow.limit_reads and Eio_mock.Flow.trace_reads replace the removed set_copy_method.

Fixes

  • eio_posix wake-up pipe (merged, #957): Sched.clear_event_fd, Sched.wakeup, and Signal_fd.ack now retry on EINTR. Prevents crashes in long-running macOS servers where a concurrent pipe writer and a signal interrupt a read.

  • opam install -t eio_main (merged, #955): Chown tests are skipped when the opam sandbox blocks ownership changes, fixing a build failure.

Compatibility

  • Socket I/O (merged, #951): eio_posix now always uses recvmsg/sendmsg with MSG_DONTWAIT. Eio_unix.Net.import_socket_stream on files or pipes now raises Socket operation on non-socket rather than silently working.

Proposals

  • Executor_pool resilience (open, #959): The pool continues when some worker domains fail to start (e.g. ENOMEM from RLIMIT_MEMLOCK in containers) instead of killing the whole program. A second optional commit drops the per-domain io_uring fixed buffer, cutting memlock cost ~30×.

  • io_uring in containers (open, #958): Documents that Eio.Domain_manager domains have no io_uring fallback; ENOMEM under Docker's 8 MiB RLIMIT_MEMLOCK kills the process. Affects Semgrep CI and similar multi-process workloads.

ocaml-multicore/saturn

Permalink

Fixes

  • Htbl.length / Skiplist.length non-linearizability (open, by nobrakal): the Size snapshot can miss a pending forward, yielding sizes outside the valid range (e.g. 4611686018427387903). No fix merged.

  • Bounded_queue.is_full non-linearizability (open, by nobrakal): a two-step push leaves the tail pointer stale, so is_full reads a cached capacity and returns false on a full queue. No fix merged.

  • Both interleavings were proven non-linearizable in Rocq via a research prototype; the bugs were identified with Claude Opus 5.5. This links formal verification tooling to concrete defects in Saturn's concurrent data structures.

7 repositories · no changes