am 8217eac0: Merge "Fix double-checked locking bug in LocalSocket." into gingerbread
Merge commit '8217eac0a0b6d394139eefa85d5f467240427e98' into gingerbread-plus-aosp * commit '8217eac0a0b6d394139eefa85d5f467240427e98': Fix double-checked locking bug in LocalSocket.
This commit is contained in:
@@ -70,8 +70,11 @@ public class LocalSocket {
|
||||
if (!implCreated) {
|
||||
synchronized (this) {
|
||||
if (!implCreated) {
|
||||
implCreated = true;
|
||||
impl.create(true);
|
||||
try {
|
||||
impl.create(true);
|
||||
} finally {
|
||||
implCreated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user