commit | baf2d6448e1558f7c453497c85e5845b46f9cbec | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Wed Mar 04 10:31:53 2020 -0800 |
committer | Jing Ji <jji@google.com> | Fri May 08 21:14:23 2020 +0000 |
tree | 53b3f4796e147b3c73d335c19473622eeeb18e5e | |
parent | 511c3aa955ba997511797af7709d83c9f8d43bd1 [diff] |
Check the isInUse with the lock held in MessageQueue Fix a potential race condtion when the same message object is being enqueued by two threads. Bug: 150263007 Bug: 154867444 Test: atest android.os.cts.MessageQueueTest Change-Id: Id79448ba8719479cbdb054f2cdd172fdcbe86d47 (cherry picked from commit 96a6fec4d651607f0f0b659dd2e8dccaa9b1ed43)