summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-02-03 18:46:50 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-02-03 18:46:50 +0000
commit6c32ccba1781a8c0bfa0f0e0965c3e20d997b37e (patch)
tree6034ec933bc47eed07d1f94d1b282976abc0a621 /libs/binder/IPCThreadState.cpp
parentb54c4d3712936f84deacda2b3c37eee7f80a818c (diff)
parent413a00e43e58a573189cec268d8052d62ba8e405 (diff)
Merge "binder: race condition by parcel finalize"
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r--libs/binder/IPCThreadState.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 5c34069b23..79a11d22bd 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -611,6 +611,12 @@ void IPCThreadState::processPostWriteDerefs()
mPostWriteStrongDerefs.clear();
}
+void IPCThreadState::createTransactionReference(RefBase* ref)
+{
+ ref->incStrong(mProcess.get());
+ mPostWriteStrongDerefs.push(ref);
+}
+
void IPCThreadState::joinThreadPool(bool isMain)
{
LOG_THREADPOOL("**** THREAD %p (PID %d) IS JOINING THE THREAD POOL\n", (void*)pthread_self(), getpid());