GC.runFinalizers
void runFinalizers(const scope void[] segment)Runs any finalizer that is located in address range of the given code segment. This is used before unloading shared libraries. All matching objects which have a finalizer in this code segment are assumed to be dead, using them while or after calling this method has undefined behavior.
Parameters
segment | address range of a code segment. |