summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-04 12:36:46 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-04 12:36:46 +0000
commitb80814c339bb90b01605f7d7753d12c2e0f8b615 (patch)
treef9431aa488baa6111d7397bc8b82c85b7c42f12d /vm.c
parent7e22f102a630b69a0ee6e54fd40b03878f6a8be1 (diff)
* gc.c: added UNLIKELY to probes for optimization.
* vm.c: ditto. * thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 16f1ebc4c1..9f6fc124b9 100644
--- a/vm.c
+++ b/vm.c
@@ -2072,7 +2072,7 @@ Init_BareVM(void)
rb_thread_t * th = malloc(sizeof(*th));
if (!vm || !th) {
fprintf(stderr, "[FATAL] failed to allocate memory\n");
- if (TRACE_RAISE_ENABLED()) FIRE_RAISE_FATAL();
+ if (UNLIKELY(TRACE_RAISE_ENABLED())) FIRE_RAISE_FATAL();
exit(EXIT_FAILURE);
}
MEMZERO(th, rb_thread_t, 1);