summaryrefslogtreecommitdiff
path: root/packages/cacao/files/cacao-0.98+hg-attachthread.patch
blob: b3dfabc625b994b34f0fca4f4ed9b48a97a0b360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -r d8fe2c3ba284 src/threads/native/threads.c
--- a/src/threads/native/threads.c	Sun Dec 30 17:43:35 2007 +0100
+++ b/src/threads/native/threads.c	Wed Jan 02 16:41:57 2008 +0100
@@ -1432,6 +1432,8 @@ bool threads_attach_current_thread(JavaV
 
 	threads_thread_set_object(thread, (java_handle_t *) t);
 
+  threads_set_current_threadobject(thread);
+
 	/* thread is completely initialized */
 
 	threads_thread_state_runnable(thread);