summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-12-11 18:46:07 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-12-13 10:29:15 +0900
commit786156d48c2b8a03f5ab20a1fc15207976e390ee (patch)
treec518df1532de96b307bf19a8c9a84caa31b5e825 /src
parentbd4268210e87d45d7d514712de80ec53ebd79e03 (diff)
downloadmruby-786156d48c2b8a03f5ab20a1fc15207976e390ee.tar.gz
mruby-786156d48c2b8a03f5ab20a1fc15207976e390ee.zip
class.c: increase first allocated page size.
Diffstat (limited to 'src')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index 90baa05eb..76a9dadf3 100644
--- a/src/class.c
+++ b/src/class.c
@@ -62,7 +62,7 @@ static void
mt_rehash(mrb_state *mrb, mt_tbl *t)
{
size_t old_alloc = t->alloc;
- size_t new_alloc = old_alloc+1;
+ size_t new_alloc = old_alloc+8;
struct mt_elem *old_table = t->table;
khash_power2(new_alloc);