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
..
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2015-03-23 16:47:26 -08:00
2016-08-09 06:43:46 -07:00
2016-02-27 15:58:35 -08:00
2016-02-27 15:58:35 -08:00
2016-05-17 12:43:40 -07:00
2015-03-23 16:47:26 -08:00
2015-08-06 20:22:24 -08:00
2015-12-15 09:09:32 -08:00
2016-01-15 05:15:31 -08:00
2016-06-03 05:43:26 -07:00
2016-06-03 05:43:26 -07:00
2016-08-09 06:43:46 -07:00
2016-08-18 15:58:48 -07:00
2016-08-09 06:43:46 -07:00
2016-08-17 10:28:36 -07:00