Michael Pliskin a écrit :
> Hello list,
> 
>   I have a question: what happens if I have multiple .n modules under
>   Apache/mod_neko, and I have cacheModule enabled in each of them? As
>   far as I understand, cacheModule makes Apache cache Neko VM instance
>   in each httpd process with the relevant module loaded. So what
>   happens if a process gets request to server a different module? Does
>   it kill/re-create VM, re-load the module, or what?

cacheModule caches the "module" which mainly contains the bytecode and
the globals table.

A VM is an interpreter stack, it is reallocated for each request.

Modules can call themself one the same VM, you don't need to allocate
one VM per module, but you need one VM per thread, so the module cache
of mod_neko is per-thread.

Best,
Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to