projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.41.11: gc: Interrupt contexts and stacks should be scavenged per-thread.
[sbcl.git]
/
src
/
runtime
/
cheneygc.c
diff --git
a/src/runtime/cheneygc.c
b/src/runtime/cheneygc.c
index
cf79fc3
..
403c31a
100644
(file)
--- a/
src/runtime/cheneygc.c
+++ b/
src/runtime/cheneygc.c
@@
-140,7
+140,7
@@
collect_garbage(generation_index_t ignore)
#ifdef PRINTNOISE
printf("Scavenging interrupt contexts ...\n");
#endif
#ifdef PRINTNOISE
printf("Scavenging interrupt contexts ...\n");
#endif
- scavenge_interrupt_contexts();
+ scavenge_interrupt_contexts(th);
#ifdef PRINTNOISE
printf("Scavenging interrupt handlers (%d bytes) ...\n",
#ifdef PRINTNOISE
printf("Scavenging interrupt handlers (%d bytes) ...\n",
@@
-391,13
+391,11
@@
scavenge_interrupt_context(os_context_t *context)
#endif
}
#endif
}
-void scavenge_interrupt_contexts(void)
+void scavenge_interrupt_contexts(struct thread *th)
{
int i, index;
os_context_t *context;
{
int i, index;
os_context_t *context;
- struct thread *th=arch_os_get_current_thread();
-
index = fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,0));
index = fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,0));