[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: "Joseph C. Sible" <josephcsible@...>
- Date: Fri, 22 May 2020 14:56:04 -0400
On Fri, May 22, 2020 at 4:26 AM Viacheslav Usov <via.usov@gmail.com> wrote:
>
> 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.
I'm not sure of a good way do that. Only two ideas come to mind
(either adding a new check without being able to remove any existing
ones, or rolling back the change that added ci->u.l.trap), and both of
them seem like they'd make it less efficient rather than making it
more efficient.
Joseph C. Sible
- 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
- Re: Can't interrupt tight loops in Lua 5.4 anymore?, Viacheslav Usov