Skip to content

Commit

Permalink
added LOCK_THREAD strings for debugging thread issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gray committed Feb 22, 2001
1 parent 5a35c7b commit 5dbbed0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
15 changes: 12 additions & 3 deletions chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
*
* The author may be contacted via http://dmalloc.com/
*
* $Id: chunk.c,v 1.169 2000/12/01 00:07:23 gray Exp $
* $Id: chunk.c,v 1.170 2001/02/22 01:15:34 gray Exp $
*/

/*
* This file contains algorithm level routine for the heap. They handle the
* manipulation and administration of chunks of memory.
*/


#include <ctype.h>

#if HAVE_STRING_H
Expand Down Expand Up @@ -63,10 +64,10 @@

#if INCLUDE_RCS_IDS
#if IDENT_WORKS
#ident "@(#) $Id: chunk.c,v 1.169 2000/12/01 00:07:23 gray Exp $"
#ident "@(#) $Id: chunk.c,v 1.170 2001/02/22 01:15:34 gray Exp $"
#else
static char *rcs_id =
"@(#) $Id: chunk.c,v 1.169 2000/12/01 00:07:23 gray Exp $";
"@(#) $Id: chunk.c,v 1.170 2001/02/22 01:15:34 gray Exp $";
#endif
#endif

Expand All @@ -83,6 +84,14 @@ static char *source_url =
"@(#) $URL: Source for dmalloc available from http://dmalloc.com/ $";
#endif

#if LOCK_THREADS
#if IDENT_WORKS
#ident "@(#) $Information: lock-threads is enabled $"
#else
static char *information = "@(#) $Information: lock-threads is enabled $"
#endif
#endif

/* local routines */
void _chunk_log_heap_map(void);

Expand Down
14 changes: 11 additions & 3 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* The author may be contacted via http://dmalloc.com/
*
* $Id: error.c,v 1.96 2000/11/13 15:46:51 gray Exp $
* $Id: error.c,v 1.97 2001/02/22 01:15:33 gray Exp $
*/

/*
Expand Down Expand Up @@ -77,10 +77,18 @@

#if INCLUDE_RCS_IDS
#if IDENT_WORKS
#ident "$Id: error.c,v 1.96 2000/11/13 15:46:51 gray Exp $"
#ident "$Id: error.c,v 1.97 2001/02/22 01:15:33 gray Exp $"
#else
static char *rcs_id =
"$Id: error.c,v 1.96 2000/11/13 15:46:51 gray Exp $";
"$Id: error.c,v 1.97 2001/02/22 01:15:33 gray Exp $";
#endif
#endif

#if LOCK_THREADS
#if IDENT_WORKS
#ident "@(#) $Information: lock-threads is enabled $"
#else
static char *information = "@(#) $Information: lock-threads is enabled $"
#endif
#endif

Expand Down
16 changes: 12 additions & 4 deletions malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* The author may be contacted via http://dmalloc.com/
*
* $Id: malloc.c,v 1.151 2000/12/01 00:08:03 gray Exp $
* $Id: malloc.c,v 1.152 2001/02/22 01:15:33 gray Exp $
*/

/*
Expand Down Expand Up @@ -80,10 +80,18 @@

#if INCLUDE_RCS_IDS
#if IDENT_WORKS
#ident "$Id: malloc.c,v 1.151 2000/12/01 00:08:03 gray Exp $"
#ident "$Id: malloc.c,v 1.152 2001/02/22 01:15:33 gray Exp $"
#else
static char *rcs_id =
"$Id: malloc.c,v 1.151 2000/12/01 00:08:03 gray Exp $";
"$Id: malloc.c,v 1.152 2001/02/22 01:15:33 gray Exp $";
#endif
#endif

#if LOCK_THREADS
#if IDENT_WORKS
#ident "@(#) $Information: lock-threads is enabled $"
#else
static char *information = "@(#) $Information: lock-threads is enabled $"
#endif
#endif

Expand Down Expand Up @@ -438,7 +446,7 @@ void _dmalloc_shutdown(void)
* not been overwritten. Thanks Randell.
*/
if (BIT_IS_SET(_dmalloc_flags, DEBUG_CHECK_HEAP)
|| BIT_IS_SET(_dmalloc_flags, DEBUG_CHECK_BLANK) {
|| BIT_IS_SET(_dmalloc_flags, DEBUG_CHECK_BLANK)) {
(void)_chunk_check();
}

Expand Down

0 comments on commit 5dbbed0

Please sign in to comment.