projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f98adc0
)
threading bugs fixed
author
cacao
<none@none>
Sun, 13 Dec 1998 20:33:44 +0000
(20:33 +0000)
committer
cacao
<none@none>
Sun, 13 Dec 1998 20:33:44 +0000
(20:33 +0000)
mm/heap2.c
patch
|
blob
|
history
diff --git
a/mm/heap2.c
b/mm/heap2.c
index abd4120d5a3cd2a45ec86c184551e93aa2982fa5..10ed06bf4515c72bf48068351fee3043c18912a5 100644
(file)
--- a/
mm/heap2.c
+++ b/
mm/heap2.c
@@
-905,11
+905,15
@@
void
gc_call (void)
{
#ifdef USE_THREADS
gc_call (void)
{
#ifdef USE_THREADS
+ u1 dummy;
+
assert(blockInts == 0);
intsDisable();
assert(blockInts == 0);
intsDisable();
- if (currentThread == NULL || currentThread == mainThread)
+ if (currentThread == NULL || currentThread == mainThread) {
+ CONTEXT(mainThread).usedStackTop = &dummy;
gc_run();
gc_run();
+ }
else
asm_switchstackandcall(CONTEXT(mainThread).usedStackTop, gc_run,
(void**)&(CONTEXT(currentThread).usedStackTop));
else
asm_switchstackandcall(CONTEXT(mainThread).usedStackTop, gc_run,
(void**)&(CONTEXT(currentThread).usedStackTop));