summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 15:34:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 15:34:50 +0000
commit51faa4e6d7d49636a71f9b4fad7a863ade3f3126 (patch)
tree7df2ed00333630f78e22298ffe806d61ab937fe6
parent18281e4a58711d2f4ec0d84adceb1cca5049f690 (diff)
downloadruby-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--ChangeLog4
-rw-r--r--mvm.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 86ea231ad0..9518bb91d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/mvm.c b/mvm.c
index 8b0844aae5..fed166529d 100644
--- a/mvm.c
+++ b/mvm.c
@@ -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)