Remove moot synchronization on shutdown
Currently, the call to rebootOrShutdown is synchronized on the Runnable.this instance, and thus there is no way for any other thread to contend on the same lock. Change-Id: Idaacda47031431435598dfd45840b1344c5938e6 Test: manually
This commit is contained in:
@@ -1020,9 +1020,7 @@ public final class SystemServer implements Dumpable {
|
||||
Runnable runnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
synchronized (this) {
|
||||
ShutdownThread.rebootOrShutdown(null, reboot, reason);
|
||||
}
|
||||
ShutdownThread.rebootOrShutdown(null, reboot, reason);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user