aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-30 15:17:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-30 15:17:24 -0300
commit9a9fe42deb626b36477f35f179fb2d908e0afb4f (patch)
treecca76bb3ae7c5a9a92f72d5428eee5bddeefd16a /lmem.c
parent0062db1e06ed6b744f6f46ba06f10d55d2db18e3 (diff)
downloadlua-9a9fe42deb626b36477f35f179fb2d908e0afb4f.tar.gz
lua-9a9fe42deb626b36477f35f179fb2d908e0afb4f.tar.bz2
lua-9a9fe42deb626b36477f35f179fb2d908e0afb4f.zip
wrong comment
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 05b4a873..0dc4d10d 100644
--- a/lmem.c
+++ b/lmem.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmem.c,v 1.75 2010/04/02 14:37:41 roberto Exp roberto $ 2** $Id: lmem.c,v 1.76 2010/04/29 17:33:17 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*/
@@ -95,7 +95,7 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {
95 } 95 }
96 lua_assert((nsize == 0) == (newblock == NULL)); 96 lua_assert((nsize == 0) == (newblock == NULL));
97 g->totalbytes = (g->totalbytes - realosize) + nsize; 97 g->totalbytes = (g->totalbytes - realosize) + nsize;
98 if (!gcstopped(g)) /* new object? */ 98 if (!gcstopped(g))
99 g->GCdebt += nsize; /* give some credit to garbage collector */ 99 g->GCdebt += nsize; /* give some credit to garbage collector */
100#if defined(TRACEMEM) 100#if defined(TRACEMEM)
101 { /* auxiliar patch to monitor garbage collection. 101 { /* auxiliar patch to monitor garbage collection.