Branch: refs/heads/leont/shared_once
Home: https://github.com/Perl/perl5
Commit: d66c2422f483f8085047bb846bf5166a8d800713
https://github.com/Perl/perl5/commit/d66c2422f483f8085047bb846bf5166a8d800713
Author: Leon Timmermans <[email protected]>
Date: 2021-08-04 (Wed, 04 Aug 2021)
Changed paths:
M dist/threads-shared/lib/threads/shared.pm
M dist/threads-shared/shared.xs
Log Message:
-----------
Only initialize shared interpreter once
Previously, the shared interpreter would be recreated every time the
bootstrap was run, in the assumption that the bootstrap would only be
run once. This assumption isn't necessarily true if multiple non-cloned
interpreters exist.
Theoretically there's still a race condition around initialization, but
I'm not particularly worried about that.