OSDN Git Service

Merge "Fix unquitable apps when debug enabled."
authorTreehugger Robot <treehugger-gerrit@google.com>
Thu, 5 Jan 2017 19:13:38 +0000 (19:13 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Thu, 5 Jan 2017 19:13:39 +0000 (19:13 +0000)
1  2 
runtime/jdwp/jdwp_adb.cc

  #include <sys/un.h>
  #include <unistd.h>
  
 +#include "android-base/stringprintf.h"
 +
  #include "base/logging.h"
 -#include "base/stringprintf.h"
  #include "jdwp/jdwp_priv.h"
+ #include "thread-inl.h"
  
  #ifdef ART_TARGET_ANDROID
  #include "cutils/sockets.h"
@@@ -53,11 -53,11 +54,13 @@@ namespace art 
  
  namespace JDWP {
  
 +using android::base::StringPrintf;
 +
  struct JdwpAdbState : public JdwpNetStateBase {
   public:
-   explicit JdwpAdbState(JdwpState* state) : JdwpNetStateBase(state) {
+   explicit JdwpAdbState(JdwpState* state)
+       : JdwpNetStateBase(state),
+         state_lock_("JdwpAdbState lock", kJdwpAdbStateLock) {
      control_sock_ = -1;
      shutting_down_ = false;