lua-users home
lua-l archive

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


Mike Pall wrote:
g->GCthreshold = (9*g->estimate)/8;

Eeeek. This breaks on 32 bit machines when more than 512 MB of memory
is in use. This is clearly too low.

Okay, /8) *9 instead.  It's the principle. :)  I was aware of
the overflow, but the worst that happens (I think) is that GC
becomes over-aggressive rather than bursting into flames.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3