Garbage collection Libraries in C++(C++ 中的垃圾收集库)
问题描述
哪些免费和商业垃圾收集库可用于 C++,它们各自的优缺点是什么?
What free and commercial garbage collection libraries are available for C++, and what are the pros and cons of each?
我感兴趣的是从该领域的实际使用中来之不易的经验教训,而不是营销或促销宣传.
I am interested in hard-won lessons from actual use in the field, not marketing or promotional blurb.
无需详细说明与自动垃圾收集相关的通常权衡,但请务必提及使用的算法(引用计数、标记和清除、增量等)并简要总结后果.
There is no need to elaborate on the usual trade offs associated with automatic garbage collection, but please do mention the algorithms used (reference counting, mark and sweep, incremental, etc.) and briefly summarise the consequences.
推荐答案
我用过 Boehm 收集器 in成功的过去.它是开源的,可用于商业软件.
I have used the Boehm collector in the past with good success. It's open source and can be used in commercial software.
它是一种保守的收集器,由垃圾收集技术领域最重要的研究人员之一开发的历史悠久.
It's a conservative collector, and has a long history of development by one of the foremost researchers in garbage collection technology.
这篇关于C++ 中的垃圾收集库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:C++ 中的垃圾收集库
基础教程推荐
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- CString 到 char* 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
