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-24 02:58:32 -07:00
2016-08-23 14:13:52 -07:00
2016-08-09 06:43:46 -07:00
2016-08-09 06:43:46 -07:00
2016-08-05 12:44:20 -07:00
2016-07-06 12:58:41 -07:00
2016-08-09 06:43:46 -07:00
2016-07-14 11:13:27 -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-07-19 10:43:29 -07:00
2016-08-17 10:44:01 -07:00
2016-08-18 20:58:39 -07:00
2016-08-16 16:13:51 -07:00
2016-08-09 06:43:46 -07:00
2016-07-25 03:43:29 -07:00
2016-08-09 06:43:46 -07:00
2016-08-26 18:58:35 -07:00
2016-08-12 07:28:38 -07:00