Skip to content

Commit c6ddda9

Browse files
committed
fix scanning threads
1 parent 9018ea2 commit c6ddda9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/druntime/src/core/thread/osthread.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,6 +1931,8 @@ private extern (D) bool suspend( Thread t ) nothrow @nogc
19311931

19321932
t.m_reg[31] = context.Sp;
19331933
t.m_reg[32] = context.Pc;
1934+
if ( !t.m_lock )
1935+
t.m_curr.tstack = cast(void*) context.Sp;
19341936
}
19351937
else
19361938
{

0 commit comments

Comments
 (0)