summaryrefslogtreecommitdiff
path: root/libmodprobe/libmodprobe_ext_test.cpp
diff options
context:
space:
mode:
authorhyeeun.jun@samsung.com <hyeeun.jun@samsung.com>2020-01-29 17:10:17 +0900
committerNarayan Kamath <narayan@google.com>2020-06-17 13:39:21 +0100
commit612fc47090e4bcff953806c855fe21f5c594aa7e (patch)
treef2b1539ceb508f6ff876b29c9b464f0a93528702 /libmodprobe/libmodprobe_ext_test.cpp
parentc39f708cb41e3493cc432f7c7d9317c8ad2218b5 (diff)
Fix Deadlock Issue On AppFuseBridge
There are two locks used by AppFuseBridge. First is it's object lock, and the second is a mutex lock in app fuse library. There are two oppsite routines to get those locks. (Thread A) Got Java lock -> Try to get Native lock (Thread B) Got Native lock -> Try to get Java lock The order must be followed to obtain two locks. If not, the dead lock will be caused. Therefore we change the routine to get the mutex lock first, and the object lock later. Signed-off-by: hyeeun.jun@samsung.com <hyeeun.jun@samsung.com> Bug: https://issuetracker.google.com/issues/145707568 Bug: 157535024 Test: atest --test-mapping apex/blobstore Change-Id: I0ab002da9a0b7ca2f518d50ab477a080cabe3788
Diffstat (limited to 'libmodprobe/libmodprobe_ext_test.cpp')
0 files changed, 0 insertions, 0 deletions