projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed a threads/gc bug.
[cacao.git]
/
threads
/
thread.c
diff --git
a/threads/thread.c
b/threads/thread.c
index 97e18c11f743a4b1213351e506ba0f8a8a48f5ff..851e2f9ac8dce5443f1b66a6196561648af2d588 100644
(file)
--- a/
threads/thread.c
+++ b/
threads/thread.c
@@
-174,6
+174,8
@@
initThreads(u1 *stackbottom)
mainThread = currentThread = the_main_thread;
+ heap_addreference((void**)&mainThread);
+
/* Add thread into runQ */
iresumeThread(mainThread);