aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-28 06:09:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-28 06:09:58 +0000
commit628f75b7524c8cd10bb2760c62d2311dbfeed70d (patch)
tree888a11126a5ec963e8902b5a6a197917160d6688 /vm.c
parentd248a2c96eb50df5b562a5da45d4b2fb05500854 (diff)
downloadruby-628f75b7524c8cd10bb2760c62d2311dbfeed70d.tar.gz
vm_core.h: rb_thread_struct::machine
* vm_core.h (rb_thread_struct): aggregate cpu stuff into a struct, so that a debugger can show its content at once. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm.c b/vm.c
index 1142a91097..7d792b8f4c 100644
--- a/vm.c
+++ b/vm.c
@@ -1987,11 +1987,11 @@ rb_thread_mark(void *ptr)
rb_mark_tbl(th->local_storage);
- if (GET_THREAD() != th && th->machine_stack_start && th->machine_stack_end) {
+ if (GET_THREAD() != th && th->machine.stack_start && th->machine.stack_end) {
rb_gc_mark_machine_stack(th);
- rb_gc_mark_locations((VALUE *)&th->machine_regs,
- (VALUE *)(&th->machine_regs) +
- sizeof(th->machine_regs) / sizeof(VALUE));
+ rb_gc_mark_locations((VALUE *)&th->machine.regs,
+ (VALUE *)(&th->machine.regs) +
+ sizeof(th->machine.regs) / sizeof(VALUE));
}
rb_vm_trace_mark_event_hooks(&th->event_hooks);