// destruct manually as object.destroy is not @nogc
(cast(ThreadT) cast(void*) ThreadBase.sm_main).__dtor();
_d_monitordelete_nogc(ThreadBase.sm_main);
- if (typeid(ThreadT).initializer.ptr)
- _mainThreadStore[] = typeid(ThreadT).initializer[];
- else
- (cast(ubyte[])_mainThreadStore)[] = 0;
+ _mainThreadStore[] = __traits(initSymbol, ThreadT)[];
ThreadBase.sm_main = null;
assert(ThreadBase.sm_tbeg && ThreadBase.sm_tlen == 1);