summaryrefslogtreecommitdiffstats
path: root/vm/Thread.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-08-04 16:09:10 -0700
committerAndy McFadden <fadden@android.com>2010-08-05 21:45:56 -0700
commit3469a7e404591fe158a60b4d05b0f2c768bcfce2 (patch)
treef99a86c051f5e78bdd2e950550da2ac83fc3671d /vm/Thread.h
parentad016ee7f5c05775ff5648af4c8e768276d7bebb (diff)
downloadandroid_dalvik-3469a7e404591fe158a60b4d05b0f2c768bcfce2.tar.gz
android_dalvik-3469a7e404591fe158a60b4d05b0f2c768bcfce2.tar.bz2
android_dalvik-3469a7e404591fe158a60b4d05b0f2c768bcfce2.zip
Fix some potential SMP issues.
Wandered through Thread.c looking for SMP trouble spots. Changed a couple of stores to android_atomic_release_store, and added some comments. Also, wrapped the self-suspend stuff that's in the thread status change code so it only happens if we're actually going to suspend the thread. Change-Id: I2d3feae7ce8937eada9111bd31928b61875a86d3
Diffstat (limited to 'vm/Thread.h')
-rw-r--r--vm/Thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/Thread.h b/vm/Thread.h
index 204135a05..b01676c72 100644
--- a/vm/Thread.h
+++ b/vm/Thread.h
@@ -319,7 +319,7 @@ void dvmUndoDebuggerSuspensions(void);
/*
* Check suspend state. Grab threadListLock before calling.
*/
-bool dvmIsSuspended(Thread* thread);
+bool dvmIsSuspended(const Thread* thread);
/*
* Wait until a thread has suspended. (Used by debugger support.)