Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,273
Issues
4,273
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
413
Merge Requests
413
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
3f82e352
Commit
3f82e352
authored
Feb 20, 2007
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freeTaskManager: don't free Tasks that are still in use
See conc059.
parent
ca8ac445
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
rts/Task.c
rts/Task.c
+10
-4
No files found.
rts/Task.c
View file @
3f82e352
...
...
@@ -84,12 +84,18 @@ freeTaskManager (void)
ACQUIRE_LOCK
(
&
sched_mutex
);
for
(
task
=
all_tasks
;
task
!=
NULL
;
task
=
next
)
{
next
=
task
->
all_link
;
if
(
task
->
stopped
)
{
// We only free resources if the Task is not in use. A
// Task may still be in use if we have a Haskell thread in
// a foreign call while we are attempting to shut down the
// RTS (see conc059).
#if defined(THREADED_RTS)
closeCondition
(
&
task
->
cond
);
closeMutex
(
&
task
->
lock
);
closeCondition
(
&
task
->
cond
);
closeMutex
(
&
task
->
lock
);
#endif
next
=
task
->
all_link
;
stgFree
(
task
);
stgFree
(
task
)
;
}
}
all_tasks
=
NULL
;
task_free_list
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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