Merge "Parcel: noop upon double recycle" am: 0c35c51d71
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2263989 Change-Id: I479c14ab1cd063a4c95623080dac1d81c4c28644 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -562,9 +562,11 @@ public final class Parcel {
|
|||||||
*/
|
*/
|
||||||
public final void recycle() {
|
public final void recycle() {
|
||||||
if (mRecycled) {
|
if (mRecycled) {
|
||||||
Log.w(TAG, "Recycle called on unowned Parcel. (recycle twice?) Here: "
|
Log.wtf(TAG, "Recycle called on unowned Parcel. (recycle twice?) Here: "
|
||||||
+ Log.getStackTraceString(new Throwable())
|
+ Log.getStackTraceString(new Throwable())
|
||||||
+ " Original recycle call (if DEBUG_RECYCLE): ", mStack);
|
+ " Original recycle call (if DEBUG_RECYCLE): ", mStack);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
mRecycled = true;
|
mRecycled = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user