summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RSSurfaceView.java
diff options
context:
space:
mode:
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>2010-12-20 16:14:52 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-01-10 12:46:21 +0100
commit872a52c6b637faf75262b83fe68ff4e0d9fe044c (patch)
tree0fdeccd99422bc1f8040e942fc59da648ba114b5 /graphics/java/android/renderscript/RSSurfaceView.java
parentfcf3d12d701e41d6e46bae8c13776f56d54f90e8 (diff)
Closing cursor in finalizer to avoid GREF and fd leak in acore
The finalize() call did not clean up completely, this eventually caused the android.process.acore to crash since it ran out of fds and GREF to increased above 2000 if an application forgot to close its cursor objects. A warning was also added when this happens so that application developers can correct their mistake. The included test case tries to verify that the finalizer works as expected by creating a bunch of Cursor objects without closing them (without this fix the acore process crashes after about 400 iterations and the test case ends with "Process crashed"). Change-Id: I11e485cef1ac02e718b2742108aa88793666c31d
Diffstat (limited to 'graphics/java/android/renderscript/RSSurfaceView.java')
0 files changed, 0 insertions, 0 deletions