Re: 0.91 luabind::call_function - leak
Willi Schinmeyer <[email protected]> Wed, 11 Jul 2012 17:22:59 +0200
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
> However, if call lua_gc(luaState, LUA_GCSTEP, 1); after every invoke, the usage does not increasse ( but at the end, 4KB remain no matter how many loop iterations i have - i gather this is the metatable for the object class that remains?!). Does starting garbage collection once after the whole iteration remove the excess memory, too? In that case the garbage collection was just not being invoked since Lua didn't mind the couple of MBs enough yet to bother collecting them. > It seems once i registered an object with luabind, im unable to reduce the memory usage to the same it was before registering. Because a metatable with class-related information gets stored in the registry. That's normal. There's no way to unregister something. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/