<URL: https://rt.cpan.org/Ticket/Display.html?id=21181 >

Le Dim 27 Mai 2018 13:20:20, sja...@gmail.com a écrit :
> Hi,
> 
> A patch is attached to fix this issue by declaring static variable
> initstub (https://metacpan.org/source/VKON/Tcl-1.05/Tcl.xs#L374) as
> volatile, which prevents compiler from optimizing out this variable.
> Therefore, a correct Tcl_InitStubs() func could be preserved before
> Tcl (libtcl.so) dynamically loaded. I think this solution would be
> more legitimate.
> 
> Result of compiler explorer shows the effect of volatile variable.
> 
> https://godbolt.org/g/RHc7Uu

TYVM!
added the fix to repositury https://github.com/gisle/tcl.pm, hopefully soon to 
be released

Reply via email to