OSDN Git Service

Increase sleep delays on debug thread kill.
authorAndy McFadden <fadden@android.com>
Thu, 18 Mar 2010 23:27:14 +0000 (16:27 -0700)
committerAndy McFadden <fadden@android.com>
Thu, 18 Mar 2010 23:31:34 +0000 (16:31 -0700)
commita388a16ee358179e4776fc6abd60fa757c3288a5
tree3741b83d5d16c88463de10bf59de45d311acf708
parent58ece73d25c78a05b94c820c5ec65b8a2edca81f
Increase sleep delays on debug thread kill.

It appears the delays between the signals were insufficient for a busy
system.  This increases the timeouts to larger values, which may or may
not be sufficient.  What's really needed here is a way to monitor
debuggerd's activity, but that seems like a lot of work for what this
wants to accomplish.

Also, set gDvm.nativeDebuggerActive to true to prevent the heapworker
watchdog timeout from firing.  (Either somebody is going to attach a
debugger soon, or the process is going to die, so it's reasonable to
do here.)

Change-Id: Ic92590499871860ef766147eeaa6efc7afb4acdc
vm/Thread.c