The static initialization code below appears to be thread-unsafe in the presence of multiple domains:
|
static value uninitialized_float = Val_unit; |
|
if (uninitialized_float == Val_unit){ |
|
uninitialized_float = caml_alloc_shr (Double_wosize, Double_tag); |
|
caml_register_generational_global_root (&uninitialized_float); |
|
} |
The static initialization code below appears to be thread-unsafe in the presence of multiple domains:
ocaml/runtime/array.c
Lines 255 to 259 in 712ee62