projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7becf23
)
per-thread debug output when using multiple threads, not just major gc
author
Simon Marlow
<simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:57:41 +0000
(21:57 +0000)
committer
Simon Marlow
<simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 21:57:41 +0000
(21:57 +0000)
rts/sm/GC.c
patch
|
blob
|
history
diff --git
a/rts/sm/GC.c
b/rts/sm/GC.c
index
94da824
..
dc51465
100644
(file)
--- a/
rts/sm/GC.c
+++ b/
rts/sm/GC.c
@@
-461,7
+461,7
@@
GarbageCollect ( rtsBool force_major_gc )
{
nat i;
for (i=0; i < n_gc_threads; i++) {
{
nat i;
for (i=0; i < n_gc_threads; i++) {
- if (major_gc) {
+ if (n_gc_threads > 1) {
trace(TRACE_gc,"thread %d:", i);
trace(TRACE_gc," copied %ld", gc_threads[i]->copied * sizeof(W_));
trace(TRACE_gc," any_work %ld", gc_threads[i]->any_work);
trace(TRACE_gc,"thread %d:", i);
trace(TRACE_gc," copied %ld", gc_threads[i]->copied * sizeof(W_));
trace(TRACE_gc," any_work %ld", gc_threads[i]->any_work);