MCPcopy Create free account
hub / github.com/creatale/node-dv / checkList

Function checkList

deps/opencv/modules/core/src/alloc.cpp:458–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457#if 0
458static void checkList(ThreadData* tls, int idx)
459{
460 Block* block = tls->bins[idx][START];
461 if( !block )
462 {
463 CV_DbgAssert( tls->bins[idx][FREE] == 0 && tls->bins[idx][GC] == 0 );
464 }
465 else
466 {
467 bool gcInside = false;
468 bool freeInside = false;
469 do
470 {
471 if( tls->bins[idx][FREE] == block )
472 freeInside = true;
473 if( tls->bins[idx][GC] == block )
474 gcInside = true;
475 block = block->next;
476 }
477 while( block != tls->bins[idx][START] );
478 CV_DbgAssert( gcInside && freeInside );
479 }
480}
481#else
482#define checkList(tls, idx)
483#endif

Callers 2

fastMallocFunction · 0.85
fastFreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected