From: Andy McFadden Date: Fri, 7 Aug 2009 21:49:40 +0000 (-0700) Subject: Read thread priority as an int, not a boolean. X-Git-Tag: android-x86-2.2~763 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4879df9b4e10b3a77d7ad7c945cae0b15b8e8b31;p=android-x86%2Fdalvik.git Read thread priority as an int, not a boolean. We were using the wrong field get function. After our change to stdbool.h, the thread priority was always 0 or 1. --- diff --git a/vm/Thread.c b/vm/Thread.c index db6425682..30c3523c8 100644 --- a/vm/Thread.c +++ b/vm/Thread.c @@ -1569,7 +1569,7 @@ static void* interpThreadStart(void* arg) * setPriority(), and then starts the thread. We could manage this with * a "needs priority update" flag to avoid the redundant call. */ - int priority = dvmGetFieldBoolean(self->threadObj, + int priority = dvmGetFieldInt(self->threadObj, gDvm.offJavaLangThread_priority); dvmChangeThreadPriority(self, priority);