summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2022-03-30 21:46:29 +0000
committerSteven Moreland <smoreland@google.com>2022-03-31 15:57:30 +0000
commit46770fa49c9a5e51a5ea5a3afc7aab0dba2e59bd (patch)
tree1ff0727114322d3b07225bcb064f9a96cbc1e399 /core
parentb9573bc0958c1827ee5bfa5085f47eb0d1df4478 (diff)
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/Parcel.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/os/Parcel.java b/core/java/android/os/Parcel.java
index e06e7b6be90a..d0a77a031c99 100644
--- a/core/java/android/os/Parcel.java
+++ b/core/java/android/os/Parcel.java
@@ -474,6 +474,7 @@ public final class Parcel {
*/
public final void recycle() {
if (DEBUG_RECYCLE) mStack = null;
+ mClassCookies = null;
freeBuffer();
if (mOwnsNativeParcelObject) {