Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1f801e3a
Commit
1f801e3a
authored
Dec 15, 2006
by
Ian Lynagh
Browse files
Free all tasks on exit, not just those on the task_free_list
parent
48aefd90
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Task.c
View file @
1f801e3a
...
...
@@ -83,14 +83,15 @@ freeTaskManager (void)
debugTrace
(
DEBUG_sched
,
"freeing task manager"
);
ACQUIRE_LOCK
(
&
sched_mutex
);
for
(
task
=
task_free_list
;
task
!=
NULL
;
task
=
next
)
{
for
(
task
=
all_tasks
;
task
!=
NULL
;
task
=
next
)
{
#if defined(THREADED_RTS)
closeCondition
(
&
task
->
cond
);
closeMutex
(
&
task
->
lock
);
#endif
next
=
task
->
next
;
next
=
task
->
all_link
;
stgFree
(
task
);
}
all_tasks
=
NULL
;
task_free_list
=
NULL
;
RELEASE_LOCK
(
&
sched_mutex
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment