diff options
author | 2021-02-03 18:46:50 +0000 | |
---|---|---|
committer | 2021-02-03 18:46:50 +0000 | |
commit | 6c32ccba1781a8c0bfa0f0e0965c3e20d997b37e (patch) | |
tree | 6034ec933bc47eed07d1f94d1b282976abc0a621 /libs/binder/IPCThreadState.cpp | |
parent | b54c4d3712936f84deacda2b3c37eee7f80a818c (diff) | |
parent | 413a00e43e58a573189cec268d8052d62ba8e405 (diff) |
Merge "binder: race condition by parcel finalize"
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 6 |
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()); |