diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.176 2002/05/16 18:39:46 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.177 2002/05/27 20:35:40 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -420,7 +420,6 @@ int luaD_protectedparser (lua_State *L, ZIO *z, int bin) { | |||
420 | struct SParser p; | 420 | struct SParser p; |
421 | lu_mem old_blocks; | 421 | lu_mem old_blocks; |
422 | int status; | 422 | int status; |
423 | lua_lock(L); | ||
424 | p.z = z; p.bin = bin; | 423 | p.z = z; p.bin = bin; |
425 | /* before parsing, give a (good) chance to GC */ | 424 | /* before parsing, give a (good) chance to GC */ |
426 | if (G(L)->nblocks + G(L)->nblocks/4 >= G(L)->GCthreshold) | 425 | if (G(L)->nblocks + G(L)->nblocks/4 >= G(L)->GCthreshold) |
@@ -437,7 +436,6 @@ int luaD_protectedparser (lua_State *L, ZIO *z, int bin) { | |||
437 | setobj(L->top++, &p.err); | 436 | setobj(L->top++, &p.err); |
438 | lua_assert(status != LUA_ERRRUN); | 437 | lua_assert(status != LUA_ERRRUN); |
439 | } | 438 | } |
440 | lua_unlock(L); | ||
441 | return status; | 439 | return status; |
442 | } | 440 | } |
443 | 441 | ||