ocamllabs / ocaml-effects

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

Explore the use of `sigaltstack` for profiler signals #6

Open kayceesrk opened 8 years ago

kayceesrk commented 8 years ago

Currently when profiling is enabled, the OCaml stacks require around a kilobyte of extra slop space at the bottom of the stack in order to run the profiling function mcount() and the signal handler function profil(). Is it possible to make use of alternate stack using sigaltstack for the signal handler?