summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author James Shargo <jshargo@google.com> 2023-12-06 18:38:44 -0500
committer Jim Shargo <jshargo@google.com> 2024-01-11 01:42:29 +0000
commitcca8170d316dc8172a21d6a4b549a012d42c3d37 (patch)
tree1b05c31d1d4b313b29a9e4e6ab12ec54453b2c09 /libs/androidfw/FileStream.cpp
parent75cb774dd25f8a9affd2ff57d2591c69c55177ab (diff)
surface: Roughly annotate Surface.java with memory usage
We've been seeing a resource leak of un-GC'd surfaces leading to system failure. This CL updates the Surface.java class with calls into the runtime to more accurately reflect the resources being held by these objects. The choice of size here is somewhat arbitrary, but should strike a good middle ground between worst and average case scenarios. Bug: 307862724 Test: Surface tests and new unit test Change-Id: Ibee8af1e5e6ba0c98b64053f866746b2f9adfbb2
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions