-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Thread-unsafety in caml_make_float_vect #11504
Copy link
Copy link
Closed
Description
The static initialization code below appears to be thread-unsafe in the presence of multiple domains:
Lines 255 to 259 in 712ee62
| 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); | |
| } |
Reactions are currently unavailable