Tag

AutoreleasePool

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Nov 27, 2024 · Mobile Development

Beginner's Guide to iOS Memory Analysis: Virtual Memory, Heap, Autoreleasepool, and Leaks

This beginner‑level guide explains iOS virtual‑memory and heap fundamentals, demonstrates how autorelease‑pool buildup and retain‑cycle leaks cause out‑of‑memory crashes, and shows step‑by‑step use of Xcode’s Memory Graph, Instruments Allocations, and leak detection tools, plus tips on weak versus unowned references.

AutoreleasePoolLeaksSwift
0 likes · 17 min read
Beginner's Guide to iOS Memory Analysis: Virtual Memory, Heap, Autoreleasepool, and Leaks
Tencent Music Tech Team
Tencent Music Tech Team
Oct 20, 2023 · Mobile Development

Root Cause Analysis of OOM Crash in iOS Karaoke App Caused by Swizzled NSMutableArray Protection

An OOM crash in the K‑song iOS karaoke app was traced to a configuration that swizzled several NSMutableArray methods, causing each observer lookup to autorelease objects, rapidly filling autorelease‑pool pages and exhausting memory; converting the protection code to manual reference counting eliminated the leak and stopped the crashes.

AutoreleasePoolMemory LeakOOM
0 likes · 21 min read
Root Cause Analysis of OOM Crash in iOS Karaoke App Caused by Swizzled NSMutableArray Protection
Sohu Tech Products
Sohu Tech Products
May 25, 2022 · Mobile Development

Understanding the AutoreleasePool Mechanism in Objective‑C

This article explains how Objective‑C’s AutoreleasePool works under ARC and MRC, covering NSAutoreleasePool, the @autoreleasepool syntax, internal C++ structures, page management, POOL_BOUNDARY handling, nested pools, and the interaction with the run‑loop for timely object release.

AutoreleasePoolMRCMemory Management
0 likes · 14 min read
Understanding the AutoreleasePool Mechanism in Objective‑C
Kuaishou Frontend Engineering
Kuaishou Frontend Engineering
Aug 30, 2021 · Mobile Development

Why Does NSString Leak in Long‑Running Threads? Exploring ARC and AutoreleasePool

An in‑depth analysis of a memory‑growth issue observed in a Kuaishou live‑stream app reveals how ARC, autorelease pools, and NSString’s class‑cluster implementation interact, why @autoreleasepool blocks resolve the leak, and how compiler optimizations and thread‑local pools affect object release in long‑running C++ threads.

AutoreleasePoolMemory ManagementNSString
0 likes · 23 min read
Why Does NSString Leak in Long‑Running Threads? Exploring ARC and AutoreleasePool