From f9b684784d30b443a1c0f3b2670aa2d5ef959b8d Mon Sep 17 00:00:00 2001 From: Bruno Deferrari Date: Wed, 27 Dec 2023 14:08:42 -0300 Subject: [PATCH] Remove call to `caml_c_thread_unregister`, breaks in OCaml 5 --- src/runtime.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime.rs b/src/runtime.rs index 93918a8..5892441 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -147,7 +147,8 @@ impl Drop for OCamlDomainLock { fn drop(&mut self) { unsafe { ocaml_sys::caml_enter_blocking_section(); - caml_c_thread_unregister(); + // FIXME: breaks with OCaml 5 + // caml_c_thread_unregister(); }; } }