在非垃圾收集语言中需要避免两个主要的内存管理危险:内存泄漏和悬空指针。
There are two major memory-management hazards to avoid in non-garbage-collected languages: memory leaks and dangling Pointers.
内存管理复杂性的主要原因是别名使用:同一块内存或对象具有多个指针或引用。
A primary contributor to the complexity of memory management is aliasing: having more than one copy of a pointer or reference to the same block of memory or object.
应用程序开发中GC的益处——包括指针安全、避免内存泄露以及使开发人员免于编写定制的内存管理工具——已经被很好地证明。
The benefits of GC to application development — including pointer safety, leak avoidance, and freeing developers from needing to write custom memory-management tooling — are well documented.
应用推荐