]> Sergey Matveev's repositories - public-inbox.git/commit
ds: workaround a memory leak in Perl 5.16.x
authorEric Wong <e@80x24.org>
Thu, 26 Sep 2019 01:50:37 +0000 (01:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 26 Sep 2019 01:51:46 +0000 (01:51 +0000)
commitcd71a869c7e9c811081446c827699d5d37155bee
tree6643719d37f8b9e9f5231112cb55da36f21d4936
parent4b3e278d9c4e5d1f55c1781aa0a7c9f0453f3852
ds: workaround a memory leak in Perl 5.16.x

The perl-5.16.3-294.el7_6 RPM package on RHEL/CentOS 7 is
affected by a memory leak in Perl when calling `ref' on
blessed references.  This resulted in a very slow leak that
manifests more quickly with a nonstop "git fetch" loop.

Use Scalar::Util::blessed to work around the issue.
Tested overnight on a CentOS 7 VM.

cf. https://rt.perl.org/Public/Bug/Display.html?id=114340
lib/PublicInbox/DS.pm