* vm_core.h (RUBY_VM_CHECK_INTS_TH): add an UNLIKELY hint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e97b544b57
commit
3e9276a538
@ -1,3 +1,7 @@
|
||||
Fri Sep 26 21:36:33 2008 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm_core.h (RUBY_VM_CHECK_INTS_TH): add an UNLIKELY hint.
|
||||
|
||||
Fri Sep 26 19:33:36 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* include/ruby/encoding.h (rb_str_encode): renamed from
|
||||
|
@ -571,7 +571,6 @@ typedef rb_control_frame_t *
|
||||
((rb_control_frame_t *)((VALUE *)(b) - 5))
|
||||
|
||||
/* VM related object allocate functions */
|
||||
/* TODO: should be static functions */
|
||||
VALUE rb_thread_alloc(VALUE klass);
|
||||
VALUE rb_proc_alloc(VALUE klass);
|
||||
|
||||
@ -624,8 +623,7 @@ extern rb_vm_t *ruby_current_vm;
|
||||
void rb_thread_execute_interrupts(rb_thread_t *);
|
||||
|
||||
#define RUBY_VM_CHECK_INTS_TH(th) do { \
|
||||
if (th->interrupt_flag) { \
|
||||
/* TODO: trap something event */ \
|
||||
if (UNLIKELY(th->interrupt_flag)) { \
|
||||
rb_thread_execute_interrupts(th); \
|
||||
} \
|
||||
} while (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user