fix bb entries
comment development code for timestamp overflow. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1703 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1808,12 +1808,14 @@ new_lu_db_entry(Term t, PredEntry *pe)
|
||||
cl->ClPrev = cl->ClNext = NULL;
|
||||
cl->ClSize = ((CODEADDR)&(x->Contents)-(CODEADDR)cl)+x->NOfCells*sizeof(CELL);
|
||||
/* Support for timestamps */
|
||||
if (pe->LastCallOfPred != LUCALL_ASSERT) {
|
||||
if (pe && pe->LastCallOfPred != LUCALL_ASSERT) {
|
||||
++pe->TimeStampOfPred;
|
||||
/* fprintf(stderr,"+ %x--%d--%ul\n",pe,pe->TimeStampOfPred,pe->ArityOfPE);*/
|
||||
pe->LastCallOfPred = LUCALL_ASSERT;
|
||||
cl->ClTimeStart = pe->TimeStampOfPred;
|
||||
} else {
|
||||
cl->ClTimeStart = 0L;
|
||||
}
|
||||
cl->ClTimeStart = pe->TimeStampOfPred;
|
||||
cl->ClTimeEnd = ~0L;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
INIT_LOCK(cl->ClLock);
|
||||
|
||||
Reference in New Issue
Block a user