Update memory-management (#5992)

* Update memory-management@tqbg8mBJfjuXacdMlIB_L.md

---------

Co-authored-by: dsh <daniel.s.holdsworth@gmail.com>
pull/5993/head^2
mrgsdev 5 months ago committed by GitHub
parent 90371b081a
commit c48907c5e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      src/data/roadmaps/ios/content/memory-management@tqbg8mBJfjuXacdMlIB_L.md

@ -1 +1,15 @@
# Memory Management
# Memory Management
Memory management involves allocating memory for objects and freeing it after use. Manual Retain-Release (MRR) requires developers to explicitly manage memory using reference counting, provided by the Foundation class NSObject. Automatic Reference Counting (ARC) automates this process by inserting memory management method calls during compilation, though it still uses reference counting. In contrast, Garbage Collection (GC) automatically tracks object ownership and releases unreferenced objects, using a different mechanism than MRR and ARC, and is supported only in the Mac OS X runtime environment, not on iOS.
> Beginning May 1, 2015, new Mac apps and app updates submitted to the Mac App Store may no longer use garbage collection, which was deprecated in OS X Mountain Lion. Instead, migrate your apps to Automatic Reference Counting, using the migration assistant in Xcode to help with this transition. Apps may continue to use retain/release for manual memory management. For more information, read the [Transitioning to ARC Release Notes](https://developer.apple.com/library/ios/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html).
Visit the following resources to learn more:
- [@official@WWDC2021: ARC in Swift: Basics and beyond](https://developer.apple.com/videos/play/wwdc2021/10216/)
- [@official@ARC(Automatic Reference Counting)](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/automaticreferencecounting/)
- [@official@About Memory Management](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html)
- [@official@Mac Apps That Use Garbage Collection Must Move to ARC](https://developer.apple.com/news/?id=02202015a)
- [@official@MemoryLayout](https://developer.apple.com/documentation/swift/memorylayout)
- [@official@Detect and diagnose memory issues](https://developer.apple.com/videos/play/wwdc2021/10180/)
- [@official@ WWDC24: Analyze heap memory](https://www.youtube.com/watch?v=X_JYRz-Hd0o)

Loading…
Cancel
Save