Metraipolis › archive › dc_f0af0bf34bbe
Automatic Reference Counting — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Automatic_Reference_Counting
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-10T11:59:36.722Z
- SHA-256 of the archived text
6c211210663bdb7f128773b5c47a777e9dad8518e91d5838f51d3520bd653b1f- Stable URL of this page
https://metraipolis.com/documento/dc_f0af0bf34bbe
How to cite
Automatic Reference Counting — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Automatic_Reference_Counting (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_f0af0bf34bbe (Metraipolis archive dc_f0af0bf34bbe, sha256 6c211210663bdb7f128773b5c47a777e9dad8518e91d5838f51d3520bd653b1f)
BibTeX
@misc{dcf0af0bf34bbe,
title = {Automatic Reference Counting — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Automatic_Reference_Counting},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_f0af0bf34bbe; sha256 6c211210663bdb7f128773b5c47a777e9dad8518e91d5838f51d3520bd653b1f},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Automatic_Reference_Counting. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Automatic Reference Counting (ARC) is a memory management feature of the Clang compiler providing automatic reference counting for the Objective-C and Swift programming languages. At compile time, it inserts into the object code messages retain and release which increase and decrease the reference count at run time, marking for deallocation those objects when the number of references to them reaches zero. ARC differs from tracing garbage collection in that there is no background process that deallocates the objects asynchronously at runtime. Unlike tracing garbage collection, ARC does not handle reference cycles automatically. This means that as long as there are "strong" references to an object, it will not be deallocated. Strong cross-references can accordingly create deadlocks and memory leaks. It is up to the developer to break cycles by using weak references. Apple Inc. deploys ARC in their operating systems, such as macOS (OS X) and iOS. Limited support (ARCLite) has been available since Mac OS X Snow Leopard and iOS 4, with complete support following in Mac OS X Lion and iOS 5. Garbage collection was declared deprecated in OS X Mountain Lion, in favor of ARC, and removed from the Objective-C runtime library in macOS Sierra. Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «Automatic Reference Counting» — https://en.wikipedia.org/wiki/Automatic_Reference_Counting Wikidata Q859846: «memory management enhancement in Objective-C» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q859846 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Automatic_Reference_Counting?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1384556100, consultata il 2026-11-10T11:55:10.371Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 685d0e0ad93af0f50620a8529215dba0308675d338e13261c95841ebc1e74abd