Changeset 11416 for trunk/psLib/src/sys/psMemory.c
- Timestamp:
- Jan 29, 2007, 5:00:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r11265 r11416 10 10 * @author Joshua Hoblitt, University of Hawaii 11 11 * 12 * @version $Revision: 1. 89$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-01- 24 22:14:48$12 * @version $Revision: 1.90 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-01-30 03:00:50 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 355 355 } 356 356 357 int psMemCheckCorruption(FILE *output, bool abort_on_error) 357 int p_psMemCheckCorruption(FILE *output, 358 bool abort_on_error, 359 const char *file, 360 unsigned int lineno, 361 const char *func) 358 362 { 359 363 // get exclusive access to the memBlock list to avoid it changing on us … … 561 565 * Check for memory leaks. 562 566 */ 563 int psMemCheckLeaks(psMemId id0, 564 psMemBlock ***array, 565 FILE * fd, 566 bool persistence) 567 int p_psMemCheckLeaks(psMemId id0, 568 psMemBlock ***array, 569 FILE * fd, 570 bool persistence, 571 const char *file, 572 unsigned int lineno, 573 const char *func) 567 574 { 568 575 psS32 nleak = 0; 569 576 psS32 j = 0; 570 577 psMemBlock *topBlock = lastMemBlockAllocated; 578 579 // make sure that the memblock list is free of corruption before we crawl 580 // the list 581 p_psMemCheckCorruption(fd, true, file, lineno, func); 571 582 572 583 MUTEX_LOCK(&memBlockListMutex);
Note:
See TracChangeset
for help on using the changeset viewer.
