new tests to check memory consistency (for incremental GC)

This commit is contained in:
Roberto Ierusalimschy
2004-03-15 18:04:54 -03:00
parent a4e1230f95
commit 48a8d78102
2 changed files with 139 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $
** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -35,6 +35,13 @@ typedef struct Memcontrol {
extern Memcontrol memcontrol;
/*
** generic variable for debug tricks
*/
extern int Trick;
void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);
#ifdef lua_c
@@ -42,7 +49,7 @@ void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);
#endif
void luaC_checkall (lua_State *L);
int lua_checkmemory (lua_State *L);
/* test for lock/unlock */