diff options
| author | Andy McFadden <fadden@android.com> | 2010-08-04 16:09:10 -0700 |
|---|---|---|
| committer | Andy McFadden <fadden@android.com> | 2010-08-05 21:45:56 -0700 |
| commit | 3469a7e404591fe158a60b4d05b0f2c768bcfce2 (patch) | |
| tree | f99a86c051f5e78bdd2e950550da2ac83fc3671d /vm/Thread.h | |
| parent | ad016ee7f5c05775ff5648af4c8e768276d7bebb (diff) | |
| download | android_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.h | 2 |
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.) |
