]> git.samba.org - jlayton/glibc.git/blobdiff - malloc/arena.c
Add first set of memory probes.
[jlayton/glibc.git] / malloc / arena.c
index 12a48ad7bac9b5b5499f6e8991c3fd0b58670e6b..0822fc85d569211aa20d725e8713a3f88209aab0 100644 (file)
@@ -736,6 +736,7 @@ _int_new_arena(size_t size)
   top(a) = (mchunkptr)ptr;
   set_head(top(a), (((char*)h + h->size) - ptr) | PREV_INUSE);
 
+  LIBC_PROBE (memory_arena_new, 2, a, size);
   tsd_setspecific(arena_key, (void *)a);
   mutex_init(&a->mutex);
   (void)mutex_lock(&a->mutex);