Loading core/java/android/os/CombinedMessageQueue/MessageQueue.java +2 −2 Original line number Diff line number Diff line Loading @@ -3047,7 +3047,7 @@ public final class MessageQueue { } if (removeMatches) { if (p.removeFromStack()) { msg.recycleUnchecked(); msg.clear(); decAndTraceMessageCount(); if (mMessageCounts.incrementCancelled()) { concurrentWake(); Loading Loading @@ -3086,7 +3086,7 @@ public final class MessageQueue { if (compare.compareMessage(msg, h, what, object, r, when)) { if (removeMatches) { if (queue.remove(msg)) { msg.recycleUnchecked(); msg.clear(); decAndTraceMessageCount(); found = true; } Loading core/java/android/os/Message.java +17 −12 Original line number Diff line number Diff line Loading @@ -333,8 +333,23 @@ public final class Message implements Parcelable { */ @UnsupportedAppUsage void recycleUnchecked() { // Mark the message as in use while it remains in the recycled object pool. // Clear out all other details. clear(); if (!MessageQueue.getUseConcurrent()) { synchronized (sPoolSync) { if (sPoolSize < MAX_POOL_SIZE) { next = sPool; sPool = this; sPoolSize++; } } } } /** * Clears all Message contents. */ void clear() { // Prevent accidental reuse such as if this Message is recycled. flags = FLAG_IN_USE; what = 0; arg1 = 0; Loading @@ -347,16 +362,6 @@ public final class Message implements Parcelable { target = null; callback = null; data = null; if (!MessageQueue.getUseConcurrent()) { synchronized (sPoolSync) { if (sPoolSize < MAX_POOL_SIZE) { next = sPool; sPool = this; sPoolSize++; } } } } /** Loading Loading
core/java/android/os/CombinedMessageQueue/MessageQueue.java +2 −2 Original line number Diff line number Diff line Loading @@ -3047,7 +3047,7 @@ public final class MessageQueue { } if (removeMatches) { if (p.removeFromStack()) { msg.recycleUnchecked(); msg.clear(); decAndTraceMessageCount(); if (mMessageCounts.incrementCancelled()) { concurrentWake(); Loading Loading @@ -3086,7 +3086,7 @@ public final class MessageQueue { if (compare.compareMessage(msg, h, what, object, r, when)) { if (removeMatches) { if (queue.remove(msg)) { msg.recycleUnchecked(); msg.clear(); decAndTraceMessageCount(); found = true; } Loading
core/java/android/os/Message.java +17 −12 Original line number Diff line number Diff line Loading @@ -333,8 +333,23 @@ public final class Message implements Parcelable { */ @UnsupportedAppUsage void recycleUnchecked() { // Mark the message as in use while it remains in the recycled object pool. // Clear out all other details. clear(); if (!MessageQueue.getUseConcurrent()) { synchronized (sPoolSync) { if (sPoolSize < MAX_POOL_SIZE) { next = sPool; sPool = this; sPoolSize++; } } } } /** * Clears all Message contents. */ void clear() { // Prevent accidental reuse such as if this Message is recycled. flags = FLAG_IN_USE; what = 0; arg1 = 0; Loading @@ -347,16 +362,6 @@ public final class Message implements Parcelable { target = null; callback = null; data = null; if (!MessageQueue.getUseConcurrent()) { synchronized (sPoolSync) { if (sPoolSize < MAX_POOL_SIZE) { next = sPool; sPool = this; sPoolSize++; } } } } /** Loading