Documentation only (#22735)

- Add Atomic ARC to Documentation. Documentation only, tiny diff.
This commit is contained in:
Juan Carlos
2023-09-21 04:05:23 -03:00
committed by GitHub
parent ed30692d29
commit b289617013

View File

@@ -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