Skip to content

Commit 9956a9b

Browse files
Steven Morelandandroid-build-merge-worker-robot
authored andcommitted
Merge "libbinder: remove dead attempt inc code" into main am: b353889
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2966628 Change-Id: I3568157c84cdf78487c36804a397cf11b157447f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents f0315a8 + b353889 commit 9956a9b

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

libs/binder/IPCThreadState.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -922,28 +922,10 @@ void IPCThreadState::decWeakHandle(int32_t handle)
922922
flushIfNeeded();
923923
}
924924

925-
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle)
926-
{
927-
#if HAS_BC_ATTEMPT_ACQUIRE
928-
LOG_REMOTEREFS("IPCThreadState::attemptIncStrongHandle(%d)\n", handle);
929-
mOut.writeInt32(BC_ATTEMPT_ACQUIRE);
930-
mOut.writeInt32(0); // xxx was thread priority
931-
mOut.writeInt32(handle);
932-
status_t result = UNKNOWN_ERROR;
933-
934-
waitForResponse(NULL, &result);
935-
936-
#if LOG_REFCOUNTS
937-
ALOGV("IPCThreadState::attemptIncStrongHandle(%ld) = %s\n",
938-
handle, result == NO_ERROR ? "SUCCESS" : "FAILURE");
939-
#endif
940-
941-
return result;
942-
#else
925+
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle) {
943926
(void)handle;
944927
ALOGE("%s(%d): Not supported\n", __func__, handle);
945928
return INVALID_OPERATION;
946-
#endif
947929
}
948930

949931
void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder)

0 commit comments

Comments
 (0)