On Tue, Mar 23, 2021 at 04:12:41PM +0100, Christopher Faulet wrote:
> Le 23/03/2021 à 11:14, Maciej Zdeb a écrit :
> > Hi Christopher,
> > 
> > Bad news, patches didn't help. Attaching stacktraces, now it looks that
> > spoe that executes lua scripts (free_thread_spue_lua.txt) tried to
> > malloc twice. :(
> > 
> 
> It is most probably because of compiler optimizations. Some compiler
> barriers are necessary to avoid instructions reordering. It is the purpose
> of attached patches. Sorry to ask you it again, but could you make some
> tests ?

I don't believe in it at all. free(), malloc() etc are free to manipulate
global variables so the compiler cannot reorder these operations around
them. We're probably facing other corner cases (or the same but not
totally addressed maybe).

Willy

Reply via email to