diff options
author | Vishnu Nair <vishnun@google.com> | 2019-08-20 09:12:26 -0700 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2019-08-27 17:35:47 +0000 |
commit | c06ec08da1c1732ab0e7bcee7a42c6e91d2e7c70 (patch) | |
tree | f1e431fcdc405882f822cc3f97c60ee62f082368 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | db1bad4ab979e4dd0bfe51424d19213c1c700ab4 (diff) |
Clear binder references and flush operations when destroying NativeInputWindowHandle
NativeInputWindowHandle is the native object associated with InputWindowHandle. The object is lazily
initialized and destroyed when the java object is finalized, running in the finalizer thread. The
native object stores a weak reference to the layer handle and if the layer handle is destroyed before
the reference can be cleaned up, we end up leaking the reference. This is because the ref count
operations do not seem to be flushed. Fix this by explicitly flushing the commands.
Bug: 139375469
Test: Run app launch scripts from bug. Check for startup time regressions and node count increases
between launches
Change-Id: I837f7cd23f94bbcf59910664aec242fcf9c43986
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions