Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W42.2026 · 12–18 OctMulticore

Features

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

  • 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.

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.

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.

  • Htbl.length / Skiplist.length non-linearizability (open, #191): The Size snapshot can miss a pending forward, yielding sizes outside the valid range. No fix merged.

  • Bounded_queue.is_full non-linearizability (open, #190): 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.

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.