Remove most allocations in SampleQueue.release
SampleQueues may be released in the context of a finally block after an out of memory error. Allocating in that scenario can throw yet a new OutOfMemoryError. By safely releasing SampleQueue memory, we increase the possibility of handling the error gracefully. PiperOrigin-RevId: 420859022
Showing
with
58 additions
and
16 deletions
Please
register
or
sign in
to comment