Avoid races between nextMessage() and stackHasMessages()
Always check if the stack is draining before we exit stackHasMessages(). - This will ensure that next has put any pending messages into the priority queues before we search them. Bug: 396569494 Flag: EXEMPT - bugfix Test: atest MessageQueueTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:19f88e9f24ef7bc899aa3410bf8d5c756c6155ff) Merged-In: If3259e13060baae4125a4977519a7f08390f79cb Change-Id: If3259e13060baae4125a4977519a7f08390f79cb
Loading
Please register or sign in to comment