GC should not run when stopped, even in hard tests

This commit is contained in:
Roberto Ierusalimschy 2010-05-24 16:29:46 -03:00
parent e34d3c06b0
commit ddf1f2a053
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.79 2010/04/29 17:31:31 roberto Exp roberto $
** $Id: llimits.h,v 1.80 2010/05/07 18:44:12 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@ -179,7 +179,8 @@ typedef lu_int32 Instruction;
#if !defined(HARDMEMTESTS)
#define condchangemem(L) condmovestack(L)
#else
#define condchangemem(L) luaC_fullgc(L, 0)
#define condchangemem(L) \
((void)(gcstopped(G(L)) || (luaC_fullgc(L, 0), 1)))
#endif
#endif