summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-02 08:45:14 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-02 08:45:14 +0000
commit1e88b393e07f76e548eb7377d81e8834abdfaa33 (patch)
treef04bed7f5c7594f374c7dd32a41c0a84140d3fe2 /thread.c
parentc5824f38adf2707ca2c64fdc6f2eaa42826ac8ab (diff)
* thread.c (RB_GC_SAVE_MACHINE_CONTEXT, rb_gc_save_machine_context):
Don't set machine_regs and machine_stack_end with a different scope. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/thread.c b/thread.c
index 00529dada5..959589da33 100644
--- a/thread.c
+++ b/thread.c
@@ -99,11 +99,7 @@ static inline int blocking_region_begin(rb_thread_t *th, struct rb_blocking_regi
rb_unblock_function_t *ubf, void *arg, int fail_if_interrupted);
static inline void blocking_region_end(rb_thread_t *th, struct rb_blocking_region_buffer *region);
-#define RB_GC_SAVE_MACHINE_CONTEXT(th) \
- do { \
- rb_gc_save_machine_context(th); \
- SET_MACHINE_STACK_END(&(th)->machine_stack_end); \
- } while (0)
+#define RB_GC_SAVE_MACHINE_CONTEXT(th) rb_gc_save_machine_context(th)
#define GVL_UNLOCK_BEGIN() do { \
rb_thread_t *_th_stored = GET_THREAD(); \
@@ -3619,6 +3615,7 @@ rb_gc_save_machine_context(rb_thread_t *th)
th->machine_register_stack_end = rb_ia64_bsp();
#endif
setjmp(th->machine_regs);
+ SET_MACHINE_STACK_END(&th->machine_stack_end);
}
/*