Displaying 2 results from an estimated 2 matches for "_ocaml_event_".
2015 Oct 06
0
[PATCH 1/4] ocaml: Use generational global roots.
...set_event_callback");
}
- /* XXX This global root is generational, but we cannot rely on every
- * user having the OCaml 3.11 version which supports this.
- */
- caml_register_global_root (root);
+ caml_register_generational_global_root (root);
snprintf (key, sizeof key, "_ocaml_event_%d", eh);
guestfs_set_private (g, key, root);
@@ -280,7 +274,7 @@ ocaml_guestfs_delete_event_callback (value gv, value ehv)
value *root = guestfs_get_private (g, key);
if (root) {
- caml_remove_global_root (root);
+ caml_remove_generational_global_root (root);
free (root);...
2015 Oct 06
6
[PATCH 0/4] ocaml: Allow Guestfs.t handle to be garbage collected.
Allow Guestfs.t handle to be garbage collected, and add a
regression test.