FIXED: Allow calling thread_detach/1 on the current thread from the thread's exit hook.  Used to crash due to double deallocation of the thread.
FIXED: Allow calling thread_detach/1 on the current thread from the
thread's exit hook.  Used to crash due to double deallocation of the
thread.

koryonik/swipl-devel,edechter/swipl-devel,edechter/swipl-devel,mndrix/swipl-devel,edechter/swipl-devel,koryonik/swipl-devel,mndrix/swipl-devel,edechter/swipl-devel,mndrix/swipl-devel,koryonik/swipl-devel,mndrix/swipl-devel,edechter/swipl-devel,jn7163/swipl-devel,koryonik/swipl-devel,jn7163/swipl-devel,jn7163/swipl-devel,jn7163/swipl-devel,mndrix/swipl-devel,jn7163/swipl-devel,koryonik/swipl-devel