[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: doubt to tolua/tolua++'s tolua_gc table.
- From: Xavier Wang <weasley.wx@...>
- Date: Sun, 26 Jun 2011 00:52:01 +0800
2011/6/26 steve donovan <firstname.lastname@example.org>
Maybe try calling collectgarbage "collect" twice; objects with __gc
On Sat, Jun 25, 2011 at 6:32 PM, Xavier Wang <email@example.com
> Obj is a C++ class binding by tolua, it seems that memory2 and memory3 is
> the same! so I don't have my memory back, how do I make my memory back after
get cleaned up on the next pass.
I tried it, but it still some memory can not back:
Memory: before for: total memory = 1710.259765625 KB
Memory: before collect: total memory = 1831.9296875 KB
Memory: After collect: total memory = 1831.630859375 KB
Memory: After collect: total memory = 1804.232421875 KB