| 277 | } |
| 278 | |
| 279 | void gc_node::gc_verify() const { |
| 280 | if ( !gc_is_alive() ) { |
| 281 | const char * typeName = gc_type_name(); |
| 282 | if ( (gc_magic & 0xFFFF0000u) == GC_MAGIC_SWEPT_PREFIX ) { |
| 283 | DAS_FATAL_ERROR("%s id=%" PRIu64 " was already swept (use-after-sweep)", typeName, gc_id); |
| 284 | } else if ( gc_magic == GC_MAGIC_DEAD ) { |
| 285 | DAS_FATAL_ERROR("%s id=%" PRIu64 " was already deleted (use-after-free)", typeName, gc_id); |
| 286 | } else { |
| 287 | DAS_FATAL_ERROR("%s id=%" PRIu64 " has corrupt magic=0x%08x", typeName, gc_id, gc_magic); |
| 288 | } |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | // ---- gc_guard ---- |
| 293 |
no test coverage detected