appcelerator/titanium_mobile — pull request #1774 by joshthecoder (2012-03-21 05:35:05+00:00)
Title: [TIMOB-7779] Re-enable emulator reference workaround.

This re-enables a workaround to prevent hitting the JNI reference limit on emulator.
Includes improvements to fix memory leaks seen previously with the workaround.

Testing
----------
1. See [TIMOB-7779](https://jira.appcelerator.org/browse/TIMOB-7779) for test cases. Run these on emulator and verify we don't hit the JNI reference limit.
2. Verify ABI compatibility by testing if a module compiled against 1.8.2 still runs with these changes.