[TIMOB-14097] BlackBerry: Proxies are never collected by GC
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-28T17:44:18.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.1.2, Release 3.2.0 |
Components | BlackBerry |
Labels | qe-3.1.2, qe-testadded |
Reporter | Josh Roesslein |
Assignee | Pedro Enrique |
Created | 2013-06-04T00:47:35.000+0000 |
Updated | 2013-10-01T21:32:02.000+0000 |
Description
The proxy objects are never being collected by the V8 engine.
We appear to be using Persistent handles, but never make them weak
or setup callbacks to properly dispose of them once the JS object is unreachable.
Test Case
setInterval(function() {
Ti.UI.createView();
}, 500);
If you run the above test case and monitor the memory usage, you
will see it continue to go up with out any collections.
Here's another test case which opens / closes a window with a bunch of labels:
Verified the fix by running the test code provided & its working as expected. Thus closing. Environment: Appcel Studio : 3.1.2.201308091728 Ti SDK : 3.1.2.v20130809141556 Mac OSX : 10.8.4 Alloy : 1.2.0-alpha6 CLI - 3.1.2-alpha win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
Re-closing. Reopened to fix priority.
Verified the fix, app does exactly what is expected. Environment: Titanium Studio, build: 3.1.3.201309132423 Titanium SDK: 3.1.3.GA BB SDK: 10.2.1 Mac OSX : 10.8.5 Alloy : 1.2.2 Z10 BB simulator : 10.2.1 Z10 device running 10.0.10.88