| 456 | |
| 457 | #if 0 |
| 458 | static 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 |
no outgoing calls
no test coverage detected