summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-26 07:56:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-26 07:56:44 +0000
commit1939d097e650a60557eafbd89a6684f4626e0ad5 (patch)
tree62a3065ee36528808c6dd58a23011df911fc3820 /thread.c
parent043523adc5275b640f5bb33bd05513194dabf61d (diff)
move several fields from rb_thread_t to rb_execution_context_t.
* vm_core.h (rb_thread_t): move several fields which are copied at cont.c to rb_execution_context_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/thread.c b/thread.c
index edae43e50c..8fb7ac0f4d 100644
--- a/thread.c
+++ b/thread.c
@@ -2038,7 +2038,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
rb_atomic_t interrupt;
int postponed_job_interrupt = 0;
- if (th->raised_flag) return;
+ if (th->ec.raised_flag) return;
while ((interrupt = threadptr_get_interrupts(th)) != 0) {
int sig;
@@ -2181,20 +2181,20 @@ rb_threadptr_signal_exit(rb_thread_t *th)
int
rb_threadptr_set_raised(rb_thread_t *th)
{
- if (th->raised_flag & RAISED_EXCEPTION) {
+ if (th->ec.raised_flag & RAISED_EXCEPTION) {
return 1;
}
- th->raised_flag |= RAISED_EXCEPTION;
+ th->ec.raised_flag |= RAISED_EXCEPTION;
return 0;
}
int
rb_threadptr_reset_raised(rb_thread_t *th)
{
- if (!(th->raised_flag & RAISED_EXCEPTION)) {
+ if (!(th->ec.raised_flag & RAISED_EXCEPTION)) {
return 0;
}
- th->raised_flag &= ~RAISED_EXCEPTION;
+ th->ec.raised_flag &= ~RAISED_EXCEPTION;
return 1;
}
@@ -2935,7 +2935,7 @@ rb_thread_safe_level(VALUE thread)
rb_thread_t *th;
GetThreadPtr(thread, th);
- return INT2NUM(th->safe_level);
+ return INT2NUM(th->ec.safe_level);
}
/*