1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix compile error w/ -DCALC_EXACT_MALLOC_SIZE

This commit is contained in:
卜部昌平 2020-03-02 11:20:50 +09:00
parent ce586107d8
commit 97fa6468dc

4
gc.c
View file

@ -9872,8 +9872,6 @@ objspace_malloc_fixup(rb_objspace_t *objspace, void *mem, size_t size)
info->gen = objspace->profile.count;
info->file = ruby_malloc_info_file;
info->line = info->file ? ruby_malloc_info_line : 0;
#else
info->file = NULL;
#endif
mem = info + 1;
}
@ -10269,8 +10267,6 @@ ruby_mimmalloc(size_t size)
info->gen = 0;
info->file = NULL;
info->line = 0;
#else
info->file = NULL;
#endif
mem = info + 1;
}