summaryrefslogtreecommitdiffstats
path: root/vm_exec.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-28 07:13:06 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-28 07:13:06 +0000
commitef310aea3f81aff558faa53b7ebcbb4561a08e5d (patch)
tree8f6f8552ebe043ce65376e38495004dfed113078 /vm_exec.c
parent8ac2f3572eb062c45f8eba3822fb51271a47ace8 (diff)
downloadruby-ef310aea3f81aff558faa53b7ebcbb4561a08e5d.tar.gz
ruby-ef310aea3f81aff558faa53b7ebcbb4561a08e5d.tar.xz
ruby-ef310aea3f81aff558faa53b7ebcbb4561a08e5d.zip
* vm_exec.c (vm_exec_core): add an UNLIKELY() hint.
* vm_insnhelper.h (BASIC_OP_UNREDEFINED_P): add a LIKELY() hint. git-svn-id: http://svn.ruby-lang.org/repos/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 392fde0cf..fc04fc6a1 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