diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 08:27:14 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 08:27:14 +0000 |
commit | 6cbc9ac208b5bbaf5d43cdd47268f41d6a98970b (patch) | |
tree | 6ad5d66650b294806b34bf103ad6f12b11603345 /thread.c | |
parent | 5c00dd28c5e16c85ed2ada37cae3b8be3a08ef3e (diff) | |
download | ruby-6cbc9ac208b5bbaf5d43cdd47268f41d6a98970b.tar.gz |
* thread.c (rb_thread_atfork): fix to mark thread object.
[ruby-dev:32404]
* bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1974,11 +1974,12 @@ rb_thread_atfork(void) { rb_thread_t *th = GET_THREAD(); rb_vm_t *vm = th->vm; + volatile VALUE thval = th->self; vm->main_thread = th; st_free_table(vm->living_threads); vm->living_threads = st_init_numtable(); - st_insert(vm->living_threads, th->self, (st_data_t) th->thread_id); + st_insert(vm->living_threads, thval, (st_data_t) th->thread_id); } struct thgroup { |