lua-users home
lua-l archive

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


Hi,

Adam D. Moss 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.

In fact I think it currently breaks at >2 GB. I was intending to fix this
by dropping l_mem in favour of lu_mem and using unsigned compares. But
I'm not sure this will fix all overflows.

Bye,
     Mike