Bill Allombert on Thu, 19 Jan 2017 14:58:27 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Use PROT_NONE for unused virtual stack memory

On Thu, Jan 19, 2017 at 12:27:09PM +0000, Jeroen Demeyer wrote:
> On 2017-01-19 11:54, Bill Allombert wrote:
> >This leads to a change of behaviour. Is it intended ?
> Yes, this is due to changes in new_chunk_resize(). Instead of iteratively
> doubling, the PARI stack is increased by more than a factor 2 if needed.

The decision about how much to enlarge the stack should be left to 
paristack_resize(0) and not be hard-coded in new_chunk_resize.
This way it is possible to implement other policies in