Cuberite Forum
Possible memory leak in Squirrel - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Possible memory leak in Squirrel (/thread-512.html)

Pages: 1 2


RE: Possible memory leak in Squirrel - Lapayo - 07-15-2012

Regarding to the author the bindings should be freed on vm shutdown..
I´ll look closer into this issue when I finished what I´m currently working on.


RE: Possible memory leak in Squirrel - xoft - 07-15-2012

This brings one more question to mind, regarding "sandboxing". Lua plugins are currently "sandboxed" - they don't see each other, each has a separate context. How about Squirrel plugins, are they sandboxed as well, or can they interact? If so, do they share their contexts properly? And are they thread-safe?


RE: Possible memory leak in Squirrel - Lapayo - 07-16-2012

The SquirrelPlugins are currently not sandboxed, they all live in one context and can interact theoretically.
But I don´t think they are thread-safe.