From 4879df9b4e10b3a77d7ad7c945cae0b15b8e8b31 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 7 Aug 2009 14:49:40 -0700 Subject: [PATCH] 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. --- vm/Thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0