projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a missing unlockTSO()
[ghc-hetmet.git]
/
rts
/
Threads.c
diff --git
a/rts/Threads.c
b/rts/Threads.c
index
9867c1c
..
799cf90
100644
(file)
--- a/
rts/Threads.c
+++ b/
rts/Threads.c
@@
-102,8
+102,8
@@
createThread(Capability *cap, nat size)
*/
ACQUIRE_LOCK(&sched_mutex);
tso->id = next_thread_id++; // while we have the mutex
*/
ACQUIRE_LOCK(&sched_mutex);
tso->id = next_thread_id++; // while we have the mutex
- tso->global_link = cap->r.rNursery->threads;
- cap->r.rNursery->threads = tso;
+ tso->global_link = g0->threads;
+ g0->threads = tso;
RELEASE_LOCK(&sched_mutex);
// ToDo: report the stack size in the event?
RELEASE_LOCK(&sched_mutex);
// ToDo: report the stack size in the event?
@@
-387,7
+387,7
@@
void
printAllThreads(void)
{
StgTSO *t, *next;
printAllThreads(void)
{
StgTSO *t, *next;
- nat i, s;
+ nat i, g;
Capability *cap;
# if defined(GRAN)
Capability *cap;
# if defined(GRAN)
@@
-415,8
+415,8
@@
printAllThreads(void)
}
debugBelch("other threads:\n");
}
debugBelch("other threads:\n");
- for (s = 0; s < total_steps; s++) {
- for (t = all_steps[s].threads; t != END_TSO_QUEUE; t = next) {
+ for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
+ for (t = generations[g].threads; t != END_TSO_QUEUE; t = next) {
if (t->why_blocked != NotBlocked) {
printThreadStatus(t);
}
if (t->why_blocked != NotBlocked) {
printThreadStatus(t);
}