lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> require "testlib"
> print("1:", collectgarbage"count") --> 22 KB
> testlib.new(2^20)
> print("2:", collectgarbage"count") --> 1046 KB
> collectgarbage"collect"
> print("3:", collectgarbage"count") --> 1044 KB

It works for me:

Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
1:	20.8818359375
2:inside __gc
	1044.9306640625
3:	17.99609375

--lhf