[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The Lua interpreter and large scripts
- From: Sean Conner <sean@...>
- Date: Wed, 11 Nov 2009 21:29:51 -0500
It was thus said that the Great Mike Pall once stated:
> The #1 question is now: why is the GC stuck? Because usually every
> string allocation is accompanied with a GC check. And once the
> threshold is reached, the GC is driven forward and should quickly
> get out of the sweepstring phase.
>
> I think luaX_newstring() in llex.c must be the culprit. You can
> try to add a GC check just before the 'return ts' at line 123:
> luaC_checkGC(L);
>
> If this solves the problem, then you've found a bug in Lua.
> Congratulations -- it doesn't happen that often. :-)
I tried that, and nope. Still takes six minutes.
-spc (And I'd like to thank you for your help so far 8-)
- References:
- Re: The Lua interpreter and large scripts, Sean Conner
- Re: The Lua interpreter and large scripts, Daniel Stephens
- Re: The Lua interpreter and large scripts, Sean Conner
- Re: The Lua interpreter and large scripts, Mike Pall
- Re: The Lua interpreter and large scripts, Luiz Henrique de Figueiredo
- Re: The Lua interpreter and large scripts, Mike Pall
- Re: The Lua interpreter and large scripts, Sean Conner
- Re: The Lua interpreter and large scripts, Mike Pall
- Re: The Lua interpreter and large scripts, Sean Conner
- Re: The Lua interpreter and large scripts, Mike Pall