diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-28 07:13:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-28 07:13:06 +0000 |
commit | ef310aea3f81aff558faa53b7ebcbb4561a08e5d (patch) | |
tree | 8f6f8552ebe043ce65376e38495004dfed113078 /vm_exec.c | |
parent | 8ac2f3572eb062c45f8eba3822fb51271a47ace8 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |