mirror of
https://github.com/lua/lua.git
synced 2025-02-04 06:13:04 +08:00
detail in extra trace code: total bytes is given by 'gettotalbytes',
not by 'totalbytes' counter.
This commit is contained in:
parent
45c346645c
commit
12ab78aca6
4
lmem.c
4
lmem.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lmem.c,v 1.80 2010/12/20 18:17:46 roberto Exp roberto $
|
** $Id: lmem.c,v 1.81 2010/12/20 19:40:07 roberto Exp roberto $
|
||||||
** Interface to Memory Manager
|
** Interface to Memory Manager
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -106,7 +106,7 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {
|
|||||||
if ((total % 200) == 0) {
|
if ((total % 200) == 0) {
|
||||||
if (f == NULL) f = fopen(TRACEMEM, "w");
|
if (f == NULL) f = fopen(TRACEMEM, "w");
|
||||||
fprintf(f, "%lu %u %d %d\n", total,
|
fprintf(f, "%lu %u %d %d\n", total,
|
||||||
g->totalbytes, g->GCdebt, g->gcstate * 1000);
|
gettotalbytes(g), g->GCdebt, g->gcstate * 10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user