[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can't interrupt tight loops in Lua 5.4 anymore?
- From: Viacheslav Usov <via.usov@...>
- Date: Fri, 22 May 2020 10:25:58 +0200
On Thu, May 21, 2020 at 10:53 PM Joseph C. Sible <josephcsible@gmail.com> wrote:
> 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).
As I said, I am not so familiar with the details as you are, however,
I did not say "just replace an existing check of L->hookmask". I said
"the code that currently checks for any hooks, should check
G(L)->hookmask", i.e., the idea is that all the checking for hooks
should be done by a single check of G(L)->hookmask, which should hold
the effective hook mask and be updated at the appropriate times, such
as Lua thread switches, and possibly ci->u.l.trap (not really sure
what this is).
Cheers,
V.
- References:
- Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Roberto Ierusalimschy
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Andrew Gierth
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Roberto Ierusalimschy
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Viacheslav Usov
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Roberto Ierusalimschy
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Viacheslav Usov
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Roberto Ierusalimschy
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Roberto Ierusalimschy
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Massimo Sala
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Viacheslav Usov
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Viacheslav Usov
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Joseph C. Sible