MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / gc_verify

Method gc_verify

src/misc/gc_node.cpp:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

verify_typedecl_gcFunction · 0.80
verify_expression_gcFunction · 0.80

Calls 1

gc_is_aliveFunction · 0.85

Tested by

no test coverage detected