Ticket #5680 (closed bug: wontfix)
Main thread does not respect stack size RTS options
|Reported by:||ravi_n||Owned by:|
|Type of failure:||Incorrect result at runtime||Difficulty:||Unknown|
|Test Case:||Blocked By:|
I was recently trying to start up with a large initial stack in a Haskell program so that I could give a large stack to some foreign code I was calling. Unfortunately, no matter what I did with the -K -ki and -kc RTS options, the stack size never seemed to change.
I suspect the problem can be traced to the the following comment in source:rts/RtsMain.c
/* ToDo: want to start with a larger stack size */
It looks to me like the main thread is started without attempting to adjust its stack size based on the RTS flags. Is that correct? If so, how hard is it to fix?