Bill Allombert on Thu, 16 Jan 2014 00:22:16 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: "not enough memory" message misleading |
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 So instead of ? allocatemem(30000000000) *** Warning: not enough memory, new stack 30000000000. *** Warning: new stack size = 15000000000 (14305.115 Mbytes). It should say: ? allocatemem(30000000000) *** Warning: not enough memory, new stack 15000000000. *** Warning: new stack size = 15000000000 (14305.115 Mbytes). Cheers, Bill.