lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, May 21, 2020 at 4:50 AM Viacheslav Usov <via.usov@gmail.com> wrote:

> All the code that currently checks for any hooks, should check G(L)->hookmask, with LUA_MASKGLOBAL where appropriate. G(L)->globalhook should be checked after the mask is checked positively.
>
> The point of the above is to have just one check for hooks in the hot path, like it is the case today.

How would checking G(L)->hookmask be any better than just checking
G(L)->globalhook? It can't just replace an existing check of
L->hookmask, since that isn't checked in the hot path (only
ci->u.l.trap is, which is the source of the original problem).

Joseph C. Sible