gpt4 book ai didi

perl - "Scalars leaked: 1"是什么意思?

转载 作者:行者123 更新时间:2023-12-04 04:31:46 25 4
gpt4 key购买 nike

我刚刚收到九次警告“标量泄露:1”。

我猜它来自一个线程上传程序,它使用 9 个线程和模块线程,threads::shared 和 Thread::Queue。这是在 WinXP、Active State 5.8.8 上。

知道这意味着什么吗?这个程序已经运行了一段时间,没有出现这样的警告,我用导致警告的相同(轻量)工作重新运行了该程序,但这次没有警告。

我不想在编译时启动线程,除非这是 Thread::Queue 在内部执行的操作。我的第一个线程调用是在 Getopt::Long 处理之后。

最佳答案

From this website:

Scalars leaked: 1 Yikes! What is that! "Scalars leaked: 1". Well, yes, that's one of the remaining problems/features/bugs of the Perl ithreads implementation. This particularly seems to happen when you start threads at compile time. From practical experience, I must say it seems to be pretty harmless. And compared to all of the other "leaking" of memory that happen because data-structures are copied, a single leaked scalar is presumably not a lot. And the error message is probably in error in this case anyway."

关于perl - "Scalars leaked: 1"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8744556/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com