Issues with debugging GC-related crashes #2

Kagamin spam at here.lot
Wed Apr 18 10:15:49 UTC 2018


You can call GC.collect at some points in the program to see if 
they can trigger the crash 
https://dlang.org/library/core/memory/gc.collect.html
If you link against debug druntime, GC can check invariants for 
correctness of its structures. There's a number of debugging 
options for GC, though not sure which ones are enabled in default 
debug build of druntime: 
https://github.com/ldc-developers/druntime/blob/ldc/src/gc/impl/conservative/gc.d#L1388


More information about the Digitalmars-d mailing list