summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-28 07:13:06 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-28 07:13:06 (GMT)
commit574027ba0371ab2e6fdb84e0634ec72d02cd6ff7 (patch)
tree8f6f8552ebe043ce65376e38495004dfed113078 /vm_exec.c
parent8d397604bf72d5efb525da5c3291f1197bcd3e9f (diff)
* vm_exec.c (vm_exec_core): add an UNLIKELY() hint.
* vm_insnhelper.h (BASIC_OP_UNREDEFINED_P): add a LIKELY() hint. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_exec.c b/vm_exec.c
index 392fde0..fc04fc6 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -83,7 +83,7 @@ vm_exec_core(rb_thread_t *th, VALUE initial)
#if OPT_TOKEN_THREADED_CODE || OPT_DIRECT_THREADED_CODE
#include "vmtc.inc"
- if (th == 0) {
+ if (UNLIKELY(th == 0)) {
#if OPT_STACK_CACHING
finish_insn_seq[0] = (VALUE)&&LABEL (finish_SC_ax_ax);
#else