[vlc-devel] [PATCH] Extensions and Lua dialogs

Rémi Denis-Courmont rem at videolan.org
Mon Dec 28 19:16:15 CET 2009

Le lundi 28 décembre 2009, Geoffroy Couprie a écrit :
> Could you go back to the main point, the Lua extensions? As much as i
> enjoy trolls and flame wars, this one is getting boring.
> Running Lua extensions in another process is the way to go: you can
> create a sandbox in Lua (cf http://lua-users.org/wiki/SandBoxes ),
> but you can't prevent it from using all of your memory.

You can't prevent it from using all of the system memory. But the lua 
process will be charged for it. So VLC won't be targeted by the 
out-of-memory killer, it won't dead lock, it won't get stuck in I/O 
wait, etc.

> If needed, I can build a Chrome-like sanbox for Windows, with limits
> to CPU/RAM used, number of processes, etc.

You have a point in fact. It's easy to limit memory and cycle 
consumption for a distinct process à la setrlimit().

As a side note, please stop sending all your mails twice.

Rémi Denis-Courmont

More information about the vlc-devel mailing list