Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e37672ba authored by Mark Fasheh's avatar Mark Fasheh
Browse files

MessageQueue: dispose() from next()

Concurrent implementation was waiting until finalize() to dispose of
mPtr and drop it's reference to the native messagequeue. But finalize()
may not be run until much later. IpClientSignatureTest#testNoFdLeaks
was failing due to open fds which were a result of Looper being kept
around and not freed. So dispose() of our pointer and reference
from next() when we are quitting our MessageQueue. This closes any
epoll control fds immediately.

Bug: 407098224
Test: atest NetworkStackIntegrationTests:android.net.ip.IpClientSignatureTest
Test: atest MessageQueueTest
Flag: EXEMPT - bugfix
Change-Id: I7c885fa2cc5cbe16116d162e050e912783c66d01
parent c9ed17d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment