mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-16 07:42:06 +00:00
sizes up to a multiple of 8 (or whatever --alignment is). This is combined with the "admin" bytes, resulting in the "extra" bytes. Added VG_(malloc_usable_size) to the tool interface to support this. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7133
11 lines
149 B
C
11 lines
149 B
C
#include <stdlib.h>
|
|
|
|
int main(void)
|
|
{
|
|
int i;
|
|
for (i = 0; i < 200; i++) {
|
|
malloc(8); // divisible by 8 -- no slop
|
|
}
|
|
return 0;
|
|
}
|