Code and resources from my 2024 tech talk on memory.
- Automatic Reference Counting, The Swift language documentation
- Reducing your app’s memory use, Apple’s doc on memory efficiency
- Preventing memory-use regressions, Apple’s doc on using XCTest for testing
- iOS Memory Deep Dive, Talk from WWDC 2018
- RefCount.h: Swift’s implementation of reference counting
- Swift 4 Weak References: Mike Ash blog post on Swift’s implementation of weak references
- LeakDetector: Steve Dao’s runtime memory leak detector for iOS
- ObjCBackRef.hpp: Bridges a reference counted object to a garbage collected object
- SpecialRefRegistry.hpp: Root references and weak references
- 2024 Valhalla Talk: Talk from Brian Goetz on ‘Java’s Epic Refactor’
- YourKit: My favorite profiler
- LeakDetector.kt: Redwood's runtime leak detector
- LeakWatcher.kt: Redwood's leak tester for the JVM
./gradlew installDebug
Open the project in Xcode and launch it.