summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMattias Petersson <mattias.petersson@sonyericsson.com>2010-10-27 09:32:51 +0200
committerDianne Hackborn <hackbod@google.com>2011-01-05 15:34:11 -0800
commit3996b416109614194a265bfc107e7a407b2c233d (patch)
tree91e9c4a0aa8bb4f0d521ad7f5c827d49f47a936d /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent69ea4e15e52c456537575d21443ac1efdb03a902 (diff)
Avoiding cyclic references when unbinding from a service
Cyclic references can occur between a Service object held by an application and a ServiceRecord object held by the system server. A part of the problem is that binders are leaked and since many binders are implemented by inner classes of services these services are also leaked. This causes low memory problems. The solution is: When a Service is beeing destroyed, go through the ServiceRecord's all IntentBindRecord and set its binder references to null. This allows the binder and the service object to be garbage collected. Change-Id: I5a257521964851f34c08ffb3908feaad96b1bafe
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions