Skip to content
Snippets Groups Projects
Commit 6df148aa authored by Avi Kivity's avatar Avi Kivity
Browse files

pthread: fix pthread_self()

current_pthread was somehow not thread-local, so pthread_self() returned
the last thread to initialize itself.  The bug manifested itself with
a jvm thread querying its own stack, finding another thread's stack instead,
and reaching the conclusion that it was in a stack overflow, and throwing
an exception.

Fix by making current_pthread thread local.
parent 87d02164
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment