Commit 948cbfd
Add autorelease pool for each run loop for JS Thread (facebook#27395)
Summary:
Fixes facebook#27327 , we need to create autorelease pool for each run loop in secondary thread, otherwise application may have memory issues. More details can refer to [CreatingThreads](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/CreatingThreads/CreatingThreads.html)

## Changelog
[iOS] [Fixed] - Add autorelease pool for each run loop for JS Thread
Pull Request resolved: facebook#27395
Test Plan: Example can be found in facebook#27327. No memory spikes any more.
Reviewed By: PeteTheHeat
Differential Revision: D19132504
Pulled By: fkgozali
fbshipit-source-id: d1747f27d36e9a7934966b34aa46d344e06193b31 parent eb95b2f commit 948cbfd
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments