sealed.pm implements dougm’s original patch to compile method lookups for typed lexicals:
https://www.perl.com/pub/2000/06/dougpatch.html/
v5.1.5 on CPAN resolves longstanding reentrancy issues.
Internally sealed always relied on an undocumented method in B::Generate to construct the replacement B::PADOP opcode, but internally it’s invoking newPADOP, which leaves the associated padname unaddressed.
This causes segfaults in Perl_pad_push reliably, when it indexes that padname element.
In v5.1.5, the padname gets created by an XS subroutine, which does the needful.
submitted by /u/joesuf4
[link] [comments]
Notes on Doug's Method Lookup Patch
Since 1997 Perl.com has published articles about the Perl programming language, its culture and community.Perl.com