Branch: refs/heads/leont/shared_once
Home: https://github.com/Perl/perl5
Commit: 1e65af3a5a27935a9a1515ebc31491e0a06f582a
https://github.com/Perl/perl5/commit/1e65af3a5a27935a9a1515ebc31491e0a06f582a
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 threads::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.