projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2371731
)
error in heap_addref corrected
author
cacao
<none@none>
Mon, 12 Oct 1998 15:43:24 +0000
(15:43 +0000)
committer
cacao
<none@none>
Mon, 12 Oct 1998 15:43:24 +0000
(15:43 +0000)
src/threads/green/threads.c
patch
|
blob
|
history
threads/thread.c
patch
|
blob
|
history
diff --git
a/src/threads/green/threads.c
b/src/threads/green/threads.c
index 775548d270ed51a65a734104e6e222e6c098dcc2..55eeea3d69cbbcb800b4c97307d30812bef1f94e 100644
(file)
--- a/
src/threads/green/threads.c
+++ b/
src/threads/green/threads.c
@@
-134,7
+134,7
@@
initThreads(u1 *stackbottom)
/* Allocate a thread to be the main thread */
liveThreads = the_main_thread = (thread*)builtin_new(loader_load(unicode_new_char("java/lang/Thread")));
assert(the_main_thread != 0);
/* Allocate a thread to be the main thread */
liveThreads = the_main_thread = (thread*)builtin_new(loader_load(unicode_new_char("java/lang/Thread")));
assert(the_main_thread != 0);
- heap_addreference(&liveThreads);
+ heap_addreference(
(void **)
&liveThreads);
the_main_thread->PrivateInfo = 1;
CONTEXT(the_main_thread).free = false;
the_main_thread->PrivateInfo = 1;
CONTEXT(the_main_thread).free = false;
diff --git
a/threads/thread.c
b/threads/thread.c
index 775548d270ed51a65a734104e6e222e6c098dcc2..55eeea3d69cbbcb800b4c97307d30812bef1f94e 100644
(file)
--- a/
threads/thread.c
+++ b/
threads/thread.c
@@
-134,7
+134,7
@@
initThreads(u1 *stackbottom)
/* Allocate a thread to be the main thread */
liveThreads = the_main_thread = (thread*)builtin_new(loader_load(unicode_new_char("java/lang/Thread")));
assert(the_main_thread != 0);
/* Allocate a thread to be the main thread */
liveThreads = the_main_thread = (thread*)builtin_new(loader_load(unicode_new_char("java/lang/Thread")));
assert(the_main_thread != 0);
- heap_addreference(&liveThreads);
+ heap_addreference(
(void **)
&liveThreads);
the_main_thread->PrivateInfo = 1;
CONTEXT(the_main_thread).free = false;
the_main_thread->PrivateInfo = 1;
CONTEXT(the_main_thread).free = false;