[PATCH] D65070: [LLVM-C][OCaml] Add a fast linker binding
Timotej Kapus via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 05:32:33 PDT 2019
kren1 marked an inline comment as done.
kren1 added inline comments.
================
Comment at: bindings/ocaml/linker/linker_ocaml.c:40
+
+static value *internalize_trampoline_callback_value = NULL;
+
----------------
whitequark wrote:
> I think the proliferation of non-reentrant/non-threadsafe functions in the API is an issue. (Right now OCaml has a global lock, but a multicore runtime is in works.) The approach in D65138 is better, but still seems error-prone to me; I'll need to take a closer look at the OCaml runtime feature to see if perhaps a better one is possible.
I can't do the D65138 approach, because the callback doesn't pass a context, but it would be easier in this case because there is no need to worry about life times.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65070/new/
https://reviews.llvm.org/D65070
More information about the llvm-commits
mailing list