fix compile error w/ -DCALC_EXACT_MALLOC_SIZE
This commit is contained in:
parent
ce586107d8
commit
97fa6468dc
4
gc.c
4
gc.c
@ -9872,8 +9872,6 @@ objspace_malloc_fixup(rb_objspace_t *objspace, void *mem, size_t size)
|
|||||||
info->gen = objspace->profile.count;
|
info->gen = objspace->profile.count;
|
||||||
info->file = ruby_malloc_info_file;
|
info->file = ruby_malloc_info_file;
|
||||||
info->line = info->file ? ruby_malloc_info_line : 0;
|
info->line = info->file ? ruby_malloc_info_line : 0;
|
||||||
#else
|
|
||||||
info->file = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
mem = info + 1;
|
mem = info + 1;
|
||||||
}
|
}
|
||||||
@ -10269,8 +10267,6 @@ ruby_mimmalloc(size_t size)
|
|||||||
info->gen = 0;
|
info->gen = 0;
|
||||||
info->file = NULL;
|
info->file = NULL;
|
||||||
info->line = 0;
|
info->line = 0;
|
||||||
#else
|
|
||||||
info->file = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
mem = info + 1;
|
mem = info + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user