summaryrefslogtreecommitdiffstats
path: root/vm/Thread.h
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2010-01-04 12:29:56 -0800
committerBen Cheng <bccheng@google.com>2010-01-07 13:42:30 -0800
commit60c24f436d603c564d5351a6f81821f12635733c (patch)
treea7891b72a6390aed9692803e84642e6bcc61dc50 /vm/Thread.h
parent81315cc4a0209073e0ae4946a6400b2cb571e616 (diff)
downloadandroid_dalvik-60c24f436d603c564d5351a6f81821f12635733c.tar.gz
android_dalvik-60c24f436d603c564d5351a6f81821f12635733c.tar.bz2
android_dalvik-60c24f436d603c564d5351a6f81821f12635733c.zip
Tear down the code cache when it is full and restart from scratch.
Because the code cache may be wiped out after safe points now the patching of inline cache for predicted chains is done through the compiler thread's work queue.
Diffstat (limited to 'vm/Thread.h')
-rw-r--r--vm/Thread.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/Thread.h b/vm/Thread.h
index a30c77c68..a6ad8320e 100644
--- a/vm/Thread.h
+++ b/vm/Thread.h
@@ -287,8 +287,9 @@ typedef enum SuspendCause {
SUSPEND_FOR_STACK_DUMP,
SUSPEND_FOR_DEX_OPT,
#if defined(WITH_JIT)
- SUSPEND_FOR_TBL_RESIZE,
- SUSPEND_FOR_IC_PATCH,
+ SUSPEND_FOR_TBL_RESIZE, // jit-table resize
+ SUSPEND_FOR_IC_PATCH, // polymorphic callsite inline-cache patch
+ SUSPEND_FOR_CC_RESET, // code-cache reset
#endif
} SuspendCause;
void dvmSuspendThread(Thread* thread);