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?
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 functionprofil()
. Is it possible to make use of alternate stack usingsigaltstack
for the signal handler?