** Check objects in gray lists. */
| 562 | ** Check objects in gray lists. |
| 563 | */ |
| 564 | static lu_mem checkgrays (global_State *g) { |
| 565 | int total = 0; /* count number of elements in all lists */ |
| 566 | if (!keepinvariant(g)) return total; |
| 567 | total += checkgraylist(g, g->gray); |
| 568 | total += checkgraylist(g, g->grayagain); |
| 569 | total += checkgraylist(g, g->weak); |
| 570 | total += checkgraylist(g, g->allweak); |
| 571 | total += checkgraylist(g, g->ephemeron); |
| 572 | return total; |
| 573 | } |
| 574 | |
| 575 | |
| 576 | /* |
no test coverage detected