ocamllabs / ocaml-effects

*DEPRECATED: See ocaml-multicore/ocaml-multicore* OCaml effects handlers
Other
27 stars 4 forks source link

Caml_allocN slowpath is broken #19

Open kayceesrk opened 8 years ago

kayceesrk commented 8 years ago

Caml_allocN [0] slow path expects %rax to contain the desired size. However, CMP_VAR in the fast path clobbers %rax.

[0] https://github.com/ocamllabs/ocaml-effects/blob/master/asmrun/amd64.S#L534-L537