diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 15:34:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 15:34:50 +0000 |
commit | 51faa4e6d7d49636a71f9b4fad7a863ade3f3126 (patch) | |
tree | 7df2ed00333630f78e22298ffe806d61ab937fe6 | |
parent | 18281e4a58711d2f4ec0d84adceb1cca5049f690 (diff) | |
download | ruby-51faa4e6d7d49636a71f9b4fad7a863ade3f3126.tar.gz |
* mvm.c (specific_key): must be initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@19256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | mvm.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,6 @@ -Tue Sep 9 00:30:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> +Tue Sep 9 00:34:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * mvm.c (specific_key): must be initialized. * st.c (st_init_table_with_size, ADD_DIRECT): fixed typo. @@ -142,9 +142,9 @@ ruby_vm_init_stderr(rb_vm_t *vm, int fd) } while (0) static struct { - rb_thread_lock_t lock; int last; -} specific_key; + rb_thread_lock_t lock; +} specific_key = {((ruby_builtin_object_count + 8) & ~7)}; int rb_vm_key_count(void) |