aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-09-20 16:25:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-09-20 16:25:23 -0300
commit12ab78aca654a45a9409d732b335dd541d8bb488 (patch)
tree75c298a4afd6fd0cbabf612b6a4a354c47b0a1e0 /lmem.c
parent45c346645c84b0d4750b254a1547051343fb26a3 (diff)
downloadlua-12ab78aca654a45a9409d732b335dd541d8bb488.tar.gz
lua-12ab78aca654a45a9409d732b335dd541d8bb488.tar.bz2
lua-12ab78aca654a45a9409d732b335dd541d8bb488.zip
detail in extra trace code: total bytes is given by 'gettotalbytes',
not by 'totalbytes' counter.
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmem.c b/lmem.c
index 090caa9a..1ee7f23d 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.80 2010/12/20 18:17:46 roberto Exp roberto $ 2** $Id: lmem.c,v 1.81 2010/12/20 19:40:07 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -106,7 +106,7 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {
106 if ((total % 200) == 0) { 106 if ((total % 200) == 0) {
107 if (f == NULL) f = fopen(TRACEMEM, "w"); 107 if (f == NULL) f = fopen(TRACEMEM, "w");
108 fprintf(f, "%lu %u %d %d\n", total, 108 fprintf(f, "%lu %u %d %d\n", total,
109 g->totalbytes, g->GCdebt, g->gcstate * 1000); 109 gettotalbytes(g), g->GCdebt, g->gcstate * 10000);
110 } 110 }
111 } 111 }
112#endif 112#endif