mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-19 04:48:12 +02:00
Memory Management: Rework Scope-based Cons (#998)
* Memory Management: Add classic ARC issues to Comparison * replaced uaf reference (which needs misuse in C++)
This commit is contained in:
parent
cb45d322c7
commit
486458c72d
@ -27,8 +27,9 @@ Here is a rough comparison of the memory management techniques.
|
||||
* Garbage collection pauses.
|
||||
* Destructor delays.
|
||||
* Scope-based like C++:
|
||||
* Complex, opt-in by programmer.
|
||||
* Potential for use-after-free.
|
||||
* Complex, opt-in by programmer (on C++).
|
||||
* Circular references can lead to memory leaks
|
||||
* Potential runtime overhead
|
||||
* Compiler-enforced and scope-based like Rust:
|
||||
* Some upfront complexity.
|
||||
* Can reject valid programs.
|
||||
|
Loading…
x
Reference in New Issue
Block a user