summaryrefslogtreecommitdiffstats
path: root/runtime/thread_state.h
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2015-01-16 16:54:35 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2015-01-20 12:40:59 -0800
commit0c8c303c20cdaaf54d26e45cc17dc5afb820d8ef (patch)
treed3289457acd74e6aa3296bbeef1f8a7619537eec /runtime/thread_state.h
parent97d9f286971a4c1eec70e08f9f18f990d21780d5 (diff)
downloadart-0c8c303c20cdaaf54d26e45cc17dc5afb820d8ef.zip
art-0c8c303c20cdaaf54d26e45cc17dc5afb820d8ef.tar.gz
art-0c8c303c20cdaaf54d26e45cc17dc5afb820d8ef.tar.bz2
Clean up the locks around Heap::VisitObjects().
This is so that we could support suspending all threads when visiting objects in the presence of a concurrent, moving collector. Bug: 12687968 Change-Id: Icc8e60630465afde948ebc6ea91d4ebaff5d7837
Diffstat (limited to 'runtime/thread_state.h')
-rw-r--r--runtime/thread_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/thread_state.h b/runtime/thread_state.h
index 6e5deeb..b5479ed 100644
--- a/runtime/thread_state.h
+++ b/runtime/thread_state.h
@@ -41,6 +41,7 @@ enum ThreadState {
kWaitingInMainSignalCatcherLoop, // WAITING TS_WAIT blocking/reading/processing signals
kWaitingForDeoptimization, // WAITING TS_WAIT waiting for deoptimization suspend all
kWaitingForMethodTracingStart, // WAITING TS_WAIT waiting for method tracing to start
+ kWaitingForVisitObjects, // WAITING TS_WAIT waiting for visiting objects
kStarting, // NEW TS_WAIT native thread started, not yet ready to run managed code
kNative, // RUNNABLE TS_RUNNING running in a JNI native method
kSuspended, // RUNNABLE TS_RUNNING suspended by GC or debugger