mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* thread.c (thread_create_core): fix GC problem.
[ruby-core:17669] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c91367675
commit
df91d39c94
3 changed files with 10 additions and 5 deletions
4
thread.c
4
thread.c
|
@ -440,9 +440,9 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
|
|||
GetThreadPtr(thval, th);
|
||||
|
||||
/* setup thread environment */
|
||||
th->first_args = args;
|
||||
th->first_proc = fn ? Qfalse : rb_block_proc();
|
||||
th->first_func = fn;
|
||||
th->first_proc = fn ? Qfalse : rb_block_proc();
|
||||
th->first_args = args; /* GC: shouldn't put before above line */
|
||||
|
||||
th->priority = GET_THREAD()->priority;
|
||||
th->thgroup = GET_THREAD()->thgroup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue