Common Perl memory/reference leak patterns?

后端 未结 4 698
天命终不由人
天命终不由人 2020-12-04 18:15

I\'m chasing a couple of potential memory leaks in a Perl code base and I\'d like to know about common pitfalls with regards to memory (mis-)management in Perl.

What

4条回答
  •  悲&欢浪女
    2020-12-04 19:10

    I've had problems with XS in the past, both my own hand-rolled stuff and CPAN modules, where memory is leaked from within the C code if it's not properly managed. I never managed to track the leaks down; the project was on a tight deadline and had a fixed operational lifetime, so I papered over the issue with a daily cron reboot. cron is truly wonderful.

提交回复
热议问题