|Bill Allombert on Thu, 16 Jan 2014 22:06:04 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: "not enough memory" message misleading|
On Thu, Jan 16, 2014 at 12:22:04AM +0100, Bill Allombert wrote: > On Wed, Jan 15, 2014 at 11:38:42PM +0100, Jeroen Demeyer wrote: > > In pari_init_stack(), the message > > > > *** Warning: not enough memory, new stack X > > > > is produced when malloc() failed to allocate X bytes, but I find > > that confusing: it sounds like X bytes were successfully allocated > > (after a previous failed allocation). > > It is an historical bug, it was supposed to say: > *** Warning: not enough memory, new stack X/2 > > It should say: > > ? allocatemem(30000000000) > *** Warning: not enough memory, new stack 15000000000. > *** Warning: new stack size = 15000000000 (14305.115 Mbytes). I restored this behaviour in git b4b5e86bf1a. Thanks for your report! Bill.