Skip to content

Commit

Permalink
Fix infinite loop in at_exit.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
  • Loading branch information
tdelvecchio-jsc committed Sep 23, 2024
1 parent a42a3c4 commit bee7fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/stdlib/stdlib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ external atomic_exchange : 'a atomic_t -> 'a @ contended -> 'a @ contended @@ po
external atomic_compare_and_set : 'a atomic_t -> 'a @ contended -> 'a @ contended -> bool @@ portable
= "%atomic_cas"

type exit_function : value mod portable = Exit_function of (unit -> unit) @@ portable
type exit_function : value mod portable = Exit_function of (unit -> unit) @@ portable [@@unboxed]

let exit_function = atomic_make (Exit_function flush_all)

Expand Down

0 comments on commit bee7fc8

Please sign in to comment.