]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: threads/lua: Makes the jmpbuf and some other buffers local to the current...
authorThierry FOURNIER <thierry.fournier@ozon.io>
Wed, 12 Jul 2017 09:39:04 +0000 (11:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:32 +0000 (13:58 +0100)
commitffbad790276486fe16326571d9d406e4188aebdf
treee78dca541eb793c2b17b7f3a9d02a134615940d4
parent8ca3b4bc46748dbf16865e17c43551bb62073ba6
MEDIUM: threads/lua: Makes the jmpbuf and some other buffers local to the current thread.

The jmpbuf contains pointer on the stack memory address currently use
when the jmpbuf is set. So the information is local to each thread.

The struct field is too big to put it in the stack, but it is used
as buffer for retriving stats values. So, this buffer si local to each
threads. Each function using this buffer, use it whithout break (yield)
so, the consistency of local buffer is ensured.
src/hlua.c
src/hlua_fcn.c