cmMem.c : Moved unique id break point comment after where the
unique id is calculated.
This commit is contained in:
parent
e1a6257d74
commit
ed1c13c0ec
28
cmMem.c
28
cmMem.c
@ -176,7 +176,7 @@ cmMmRC_t _cmMmFreeP( cmMm_t* p, void* dataPtr )
|
|||||||
if( rp == NULL )
|
if( rp == NULL )
|
||||||
return cmErrMsg(&p->err,kMissingRecdMmRC,"Unable to locate a tracking record associated with released data area pointer:%p.",dataPtr);
|
return cmErrMsg(&p->err,kMissingRecdMmRC,"Unable to locate a tracking record associated with released data area pointer:%p.",dataPtr);
|
||||||
/*
|
/*
|
||||||
if( rp->uniqueId == 176690 )
|
if( rp->uniqueId == 59451 )
|
||||||
{
|
{
|
||||||
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory free id:%i.",rp->uniqueId);
|
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory free id:%i.",rp->uniqueId);
|
||||||
}
|
}
|
||||||
@ -494,17 +494,6 @@ void* cmMmAllocate(
|
|||||||
unsigned newByteCnt = newEleCnt * newEleByteCnt;
|
unsigned newByteCnt = newEleCnt * newEleByteCnt;
|
||||||
void* ndp = _cmMmAllocate(p,orgDataPtr,newByteCnt,flags);
|
void* ndp = _cmMmAllocate(p,orgDataPtr,newByteCnt,flags);
|
||||||
|
|
||||||
/*
|
|
||||||
if( p->nextId == 189114 )
|
|
||||||
{
|
|
||||||
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory allocation id:%i.",p->nextId);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( (long long)_cmMmDataToBasePtr(ndp,p->guardByteCnt) == 0x7fffed8d0b40 )
|
|
||||||
{
|
|
||||||
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory allocation id:%i.",p->nextId);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// if we are tracking changes
|
// if we are tracking changes
|
||||||
@ -526,8 +515,23 @@ void* cmMmAllocate(
|
|||||||
return ndp;
|
return ndp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// p->nextId is incremented here
|
||||||
cmThUIntIncr(&p->nextId,1);
|
cmThUIntIncr(&p->nextId,1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
if( p->nextId == 2393 )
|
||||||
|
{
|
||||||
|
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory allocation id:%i.",p->nextId);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
if( (long long)_cmMmDataToBasePtr(ndp,p->guardByteCnt) == 0x7fffed8d0b40 )
|
||||||
|
{
|
||||||
|
cmErrMsg(&p->err,kOkMmRC,"Breakpoint for memory allocation id:%i.",p->nextId);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
// initialize the new tracking recd
|
// initialize the new tracking recd
|
||||||
rp->dataPtr = ndp;
|
rp->dataPtr = ndp;
|
||||||
rp->dataByteCnt = newByteCnt;
|
rp->dataByteCnt = newByteCnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user