Repository navigation
Commit 2ffc322
committed
docs(leak-probe): note gesture recognizer cycles are missed before iOS 26
Before iOS 26, UIGestureEnvironment retains every recognizer attached to
a view from its _nodesByGestureRecognizer NSMapTable, and the environment
is reachable from a GC root, so a view -> recognizer -> JS state -> view
cycle is held from outside and findLeakCycles cannot report it, even in
strict mode. Measured on iOS 18.5 (recognizer retainCount 3, one found
reference) against iOS 26.3 (retainCount 1, three unretained references
from the Gestures node shim).
Document that, and that NSHashTable, NSMapTable and NSPointerArray
contents are not read, and expect the gesture cycle in strict reports
only from iOS 26.1 parent 1dd20d4 commit 2ffc322
3 files changed
Lines changed: 24 additions & 5 deletions
File tree
- TestRunner/app/tests
- docs
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
415 | 419 | | |
416 | 420 | | |
417 | 421 | | |
418 | | - | |
419 | | - | |
420 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
421 | 425 | | |
422 | 426 | | |
423 | 427 | | |
424 | | - | |
| 428 | + | |
425 | 429 | | |
426 | 430 | | |
427 | 431 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
261 | 269 | | |
262 | 270 | | |
263 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
| |||
0 commit comments