react-native/Libraries
Adam Comella 5d748b2eec Fix memory leak in MessageQueue
Summary:
The MessageQueue has a _debugInfo object where it stores debug information associated with each callback. The size of this structure is currently unbounded.

It looks like the code attempted to restrict _debugInfo to a fixed number of entries but due to a logic bug, it leaked around 30 entries for every 1 entry it cleaned up.

This change limits the _debugInfo object to around 30 entries.

**Test plan (required)**

This change is currently being used in my team's app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/9611

Differential Revision: D3781875

fbshipit-source-id: 58c645c52c3e295fe571b7ca7e0d882169c301ef
2016-08-26 18:58:35 -07:00
..
ART Move font helpers to RCTFont 2016-08-05 12:44:20 -07:00
ActionSheetIOS Documentation typo 2016-08-24 02:58:32 -07:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated Add AnimatedDiffClamp node 2016-08-23 14:13:52 -07:00
AppRegistry Auto-fix lint errors 2016-08-09 06:43:46 -07:00
AppState Auto-fix lint errors 2016-08-09 06:43:46 -07:00
BatchedBridge Update the native CLC for relay queries 2016-08-15 12:13:45 -07:00
BugReporting Unrevert D3518381 2016-07-06 12:58:41 -07:00
CameraRoll check for NSPhotoLibraryUsageDescription in plist 2016-08-18 07:28:43 -07:00
Components Add TextInput controlled selection prop on iOS 2016-08-25 17:28:37 -07:00
CustomComponents Allow the disabling of navigation gestures. 2016-08-21 13:13:46 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Devtools Get server host in setupDevtools for Android 2016-07-19 05:58:29 -07:00
EventEmitter Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Experimental Incremental: Fix require of performanceNow 2016-08-25 17:43:48 -07:00
Fetch Fixed what fetch.js exports 2016-07-14 11:13:27 -07:00
Geolocation check for NSPhotoLibraryUsageDescription in plist 2016-08-18 07:28:43 -07:00
Image Avoid reloading images that are already the source size 2016-08-26 13:59:05 -07:00
Inspector Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Interaction Incremental: Fix require of performanceNow 2016-08-25 17:43:48 -07:00
JavaScriptAppEngine Add todo about broken check 2016-08-25 08:58:33 -07:00
LayoutAnimation Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Linking Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LinkingIOS Fix warning on unused return values in RCTSRWebSocket 2016-08-16 07:28:28 -07:00
Modal Fix Popover problem for RTL 1/n 2016-07-19 10:43:29 -07:00
NativeAnimation Add support for value listener 2016-08-11 18:13:31 -07:00
NavigationExperimental do not reset layout state if they are the same in NavigationTransitioner 2016-08-26 10:58:31 -07:00
Network Support RCTNetworking#clearCookies on iOS 2016-08-26 05:43:39 -07:00
PermissionsAndroid Change Android Permission Module to use promises 2016-08-16 12:58:39 -07:00
PushNotificationIOS Fix misleading docstring on getInitialNotification 2016-08-03 12:28:41 -07:00
QuickPerformanceLogger AdsManager now uses new react native QPL identifiers 2016-07-20 07:28:36 -07:00
RCTTest Fix snapshottests under iOS10 2016-08-17 10:44:01 -07:00
RKBackendNode Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
ReactIOS JS1: Fix Scrolling in YellowBox 2016-08-16 16:13:51 -07:00
ReactNative Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
Sample Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Settings Auto-fix lint errors 2016-08-09 06:43:46 -07:00
Share Add Share module 2016-07-25 03:43:29 -07:00
Storage Auto-fix lint errors 2016-08-09 06:43:46 -07:00
StyleSheet Updated documentation for hairlineWidth 2016-08-25 08:00:24 -07:00
Text Add TextInput controlled selection prop on iOS 2016-08-25 17:28:37 -07:00
Utilities Fix memory leak in MessageQueue 2016-08-26 18:58:35 -07:00
Vibration Ios: complete iOS vibration pattern supports (js) 2016-08-25 18:28:38 -07:00
WebSocket Fix warning on unused return values in RCTSRWebSocket 2016-08-16 07:28:28 -07:00
react-native Create a RTLExample for OSS 2016-08-18 20:58:39 -07:00
vendor Cleanup clear/set/throwImmediate 2016-08-12 07:28:38 -07:00
Promise.js Make onUnhandled safe for undefined errors 2016-08-02 07:58:28 -07:00
promiseRejectionIsError.js Add possibility to `console.error`/redbox on promise rejections 2016-03-15 05:22:22 -07:00