MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / recycle

Method recycle

core/java/android/os/Message.java:248–258  ·  view source on GitHub ↗

Return a Message instance to the global pool. You MUST NOT touch the Message after calling this function -- it has effectively been freed.

()

Source from the content-addressed store, hash-verified

246 * freed.
247 */
248 public void recycle() {
249 clearForRecycle();
250
251 synchronized (sPoolSync) {
252 if (sPoolSize < MAX_POOL_SIZE) {
253 next = sPool;
254 sPool = this;
255 sPoolSize++;
256 }
257 }
258 }
259
260 /**
261 * Make this message like o. Performs a shallow copy of the data field.

Callers 15

loopMethod · 0.95
removeSyncBarrierMethod · 0.95
removeMessagesMethod · 0.95
syncPingSupplicantMethod · 0.95
syncRemoveNetworkMethod · 0.95
syncEnableNetworkMethod · 0.95

Calls 1

clearForRecycleMethod · 0.95

Tested by

no test coverage detected