Commit 6a6b16df authored by Simon Marlow's avatar Simon Marlow
Browse files

fix a bug introduced in 1fb38442,

symptom was 2047(threaded2) was crashing.
parent 243c3042
......@@ -643,8 +643,12 @@ GarbageCollect (rtsBool force_major_gc,
// zero the scavenged static object list
if (major_gc) {
nat i;
for (i = 0; i < n_gc_threads; i++) {
zero_static_object_list(gc_threads[i]->scavenged_static_objects);
if (n_gc_threads == 1) {
zero_static_object_list(gct->scavenged_static_objects);
} else {
for (i = 0; i < n_gc_threads; i++) {
zero_static_object_list(gc_threads[i]->scavenged_static_objects);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment