summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-03-09 16:38:36 -0800
committerAndy McFadden <fadden@android.com>2010-03-09 16:48:41 -0800
commite0fb1511a21749fcc8ec99477641b24f819836f5 (patch)
treee8ad6fed322bc5755ff26cab0980560b797067bb /include/ScopedJavaUnicodeString.h
parentb43295e3f5908be80e287b9b3890d4339d54d3c5 (diff)
If a finalizer wedges, raise prio and retry.
The VM uses a watchdog mechanism to detect stuck finalizers. It appears that, in some cases, the watchdog may be firing because the HeapWorker thread in a background process doesn't get any CPU time after a remotely-induced GC finishes. With this change, if the HeapWorker is running at a reduced priority, we raise the priority and allow it to try some more. No attempt is made to put the thread priority back. (The HeapWorker thread doesn't do anything in an idle process, and what it does do is geared toward freeing one kind of resource or another.) For bug 2492196. Change-Id: Ic734c2e2819b9d60d20b2961f2a75085d5879495
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions