Skip to content

Commit 7b4e47e

Browse files
Steven Morelandofficialputuid
authored andcommitted
Parcel: recycle recycles
Before, it was like getting a used pan with food stuck on it. We run a clean ship here. You want a Parcel? You get a fresh Parcel. When we recycle a Parcel, we do a real clean-up job. Air freshener. All bits brushed over. These Parcel objects are clean as heck now! (specifically cleans mClassCookies) Bug: 208279300 Test: build Merged-In: I250872f5c6796bb64e2dc68008154c0e90feb218 Change-Id: I250872f5c6796bb64e2dc68008154c0e90feb218 (cherry picked from commit 46770fa) (cherry picked from commit b5c79e1) Merged-In: I250872f5c6796bb64e2dc68008154c0e90feb218
1 parent ee38e8b commit 7b4e47e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/java/android/os/Parcel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ public static Parcel obtain() {
443443
*/
444444
public final void recycle() {
445445
if (DEBUG_RECYCLE) mStack = null;
446+
mClassCookies = null;
446447
freeBuffer();
447448

448449
final Parcel[] pool;

0 commit comments

Comments
 (0)