1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* thread.c (rb_gc_save_machine_context): call FLUSH_REGISTER_WINDOWS

to mark the register stack from GC on another thread.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-05-08 06:59:03 +00:00
parent 9f48c67236
commit 611e287498
3 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu May 8 15:36:11 2008 Tanaka Akira <akr@fsij.org>
* thread.c (rb_gc_save_machine_context): call FLUSH_REGISTER_WINDOWS
to mark the register stack from GC on another thread.
Thu May 8 15:14:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu May 8 15:14:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* array.c (rb_ary_sort_bang): freeze temporary array. * array.c (rb_ary_sort_bang): freeze temporary array.

View file

@ -234,3 +234,15 @@ assert_normal_exit %q{
STDERR.reopen(STDOUT) STDERR.reopen(STDOUT)
exec "/" exec "/"
} }
assert_normal_exit %q{
(0..10).map {
Thread.new {
10000.times {
Object.new.to_s
}
}
}.each {|t|
t.join
}
}

View file

@ -1966,6 +1966,7 @@ void
rb_gc_save_machine_context(rb_thread_t *th) rb_gc_save_machine_context(rb_thread_t *th)
{ {
SET_MACHINE_STACK_END(&th->machine_stack_end); SET_MACHINE_STACK_END(&th->machine_stack_end);
FLUSH_REGISTER_WINDOWS;
#ifdef __ia64 #ifdef __ia64
th->machine_register_stack_end = rb_ia64_bsp(); th->machine_register_stack_end = rb_ia64_bsp();
#endif #endif