mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
Documentation only (#22735)
- Add Atomic ARC to Documentation. Documentation only, tiny diff.
This commit is contained in:
25
doc/mm.md
25
doc/mm.md
@@ -22,7 +22,7 @@ Multi-paradigm Memory Management Strategies
|
||||
Nim offers multiple different memory management strategies.
|
||||
To choose the memory management strategy use the `--mm:` switch.
|
||||
|
||||
**The recommended switch for newly written Nim code is `--mm:orc`.**
|
||||
.. hint:: **The recommended switch for newly written Nim code is `--mm:orc`.**
|
||||
|
||||
|
||||
ARC/ORC
|
||||
@@ -73,17 +73,18 @@ Other MM modes
|
||||
|
||||
Here is a comparison of the different memory management modes:
|
||||
|
||||
================== ======== ================= ============== ===================
|
||||
Memory Management Heap Reference Cycles Stop-The-World Command line switch
|
||||
================== ======== ================= ============== ===================
|
||||
ORC Shared Cycle Collector No `--mm:orc`
|
||||
ARC Shared Leak No `--mm:arc`
|
||||
RefC Local Cycle Collector No `--mm:refc`
|
||||
Mark & Sweep Local Cycle Collector No `--mm:markAndSweep`
|
||||
Boehm Shared Cycle Collector Yes `--mm:boehm`
|
||||
Go Shared Cycle Collector Yes `--mm:go`
|
||||
None Manual Manual Manual `--mm:none`
|
||||
================== ======== ================= ============== ===================
|
||||
================== ======== ================= ============== ====== ===================
|
||||
Memory Management Heap Reference Cycles Stop-The-World Atomic Command line switch
|
||||
================== ======== ================= ============== ====== ===================
|
||||
ORC Shared Cycle Collector No No `--mm:orc`
|
||||
ARC Shared Leak No No `--mm:arc`
|
||||
Atomic ARC Shared Leak No Yes `--mm:atomicArc`
|
||||
RefC Local Cycle Collector No No `--mm:refc`
|
||||
Mark & Sweep Local Cycle Collector No No `--mm:markAndSweep`
|
||||
Boehm Shared Cycle Collector Yes No `--mm:boehm`
|
||||
Go Shared Cycle Collector Yes No `--mm:go`
|
||||
None Manual Manual Manual Manual `--mm:none`
|
||||
================== ======== ================= ============== ====== ===================
|
||||
|
||||
.. default-role:: code
|
||||
.. include:: rstcommon.rst
|
||||
|
||||
Reference in New Issue
Block a user