Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2009 09:31:47 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199264 - head/lib/libc/stdlib
Message-ID:  <200911140931.nAE9VlEx093010@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Sat Nov 14 09:31:47 2009
New Revision: 199264
URL: http://svn.freebsd.org/changeset/base/199264

Log:
  Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)
  in order to distinguish it from free(NULL), which is logged as (0, 0, 0).
  
  Reviewed by:	jhb

Modified:
  head/lib/libc/stdlib/malloc.c

Modified: head/lib/libc/stdlib/malloc.c
==============================================================================
--- head/lib/libc/stdlib/malloc.c	Sat Nov 14 08:08:49 2009	(r199263)
+++ head/lib/libc/stdlib/malloc.c	Sat Nov 14 09:31:47 2009	(r199264)
@@ -5116,7 +5116,7 @@ MALLOC_OUT:
 	arena_maxclass = chunksize - (arena_chunk_header_npages <<
 	    PAGE_SHIFT);
 
-	UTRACE(0, 0, 0);
+	UTRACE((void *)(intptr_t)(-1), 0, 0);
 
 #ifdef MALLOC_STATS
 	memset(&stats_chunks, 0, sizeof(chunk_stats_t));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911140931.nAE9VlEx093010>