def destroy(thrd, h): _c.destroy(thrd._thrd, h)
def destroy(self, thrd, suspstack): h = suspstack.handle suspstack.handle = _c.null_handle _c.destroy(thrd._thrd, h)
def destroy(thrd, suspstack): h = llop.gc_shadowstackref_context(llmemory.Address, suspstack) h = llmemory.cast_adr_to_ptr(h, _c.handle) llop.gc_shadowstackref_destroy(lltype.Void, suspstack) _c.destroy(thrd._thrd, h)
def destroy(thrd, h): _c.destroy(thrd._thrd, h) if objectmodel.we_are_translated(): debug.debug_print("not using a framework GC: " "stacklet_destroy() may leak")