On Mon Aug 08 04:09:13 2016, elizabeth wrote:
> As far as I understand Jonathan’s position on this, is that you
> shouldn’t do that.
Well, you shouldn't do it without concurrency control if you want correct
results. But SEGV isn't an OK failure mode. So it wants addressing up to that
point (an
As far as I understand Jonathan’s position on this, is that you shouldn’t do
that. If you want to push to an array from multiple threads, you probably
should use a Channel, or use Supplies with an .act block.
As to the security implications of this behaviour, I must admit I haven’t
thought abo
On Mon, Aug 08, 2016 at 12:25:52AM -0700, Aleks-Daniel Jakimenko-Aleksejev
wrote:
> While it is probably a bad idea to push values into the same array from two
> threads, if I recall correctly rakudo is supposed to not crash like that no
> matter what.
>
> Code:
> my @a;
> start loop { @a.push:
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #128870]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=128870 >
While it is probably a bad idea to push values into the same array fr