Jeroen Demeyer on Thu, 12 Feb 2015 21:08:12 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: PARI_stack_check false positives |
On 2015-02-12 20:58, Bill Allombert wrote:
On Thu, Feb 12, 2015 at 08:30:01PM +0100, Jeroen Demeyer wrote:Hello pari-dev, the PARI_stack_limit functionality can sometimes lead to false positives: PARI assumes that the stack is essentially empty when pari_init_opts() is called, that there is only one stack, that getrlimit(RLIMIT_STACK) is constant. These assumptions are not necessarily true.I suggest you read the documentation of the function pari_stackcheck_init().
OK, I didn't realize that pari_stackcheck_init() was meant to be called by user code. That should solve my problem indeed.