Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
877a2a80
Commit
877a2a80
authored
2 years ago
by
Duncan Coutts
Committed by
Marge Bot
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
The select() I/O manager does have some global initialisation
It's just to make sure an exception CAF is a GC root.
parent
aaa294d0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rts/IOManager.c
+10
-2
10 additions, 2 deletions
rts/IOManager.c
rts/RtsStartup.c
+0
-1
0 additions, 1 deletion
rts/RtsStartup.c
with
10 additions
and
3 deletions
rts/IOManager.c
+
10
−
2
View file @
877a2a80
...
...
@@ -20,6 +20,7 @@
#include
"IOManager.h"
// RTS internal
#include
"Capability.h"
#include
"Schedule.h"
#include
"Prelude.h"
#include
"RtsFlags.h"
#include
"RtsUtils.h"
#include
"sm/Evac.h"
...
...
@@ -296,8 +297,15 @@ void initIOManager(void)
switch
(
iomgr_type
)
{
/* The IO_MANAGER_SELECT needs no global initialisation */
#if defined(IOMGR_ENABLED_SELECT)
case
IO_MANAGER_SELECT
:
/* Make the exception CAF a GC root. See initBuiltinGcRoots for
* similar examples. We throw this exception if a thread tries to
* wait on an invalid FD.
*/
getStablePtr
((
StgPtr
)
blockedOnBadFD_closure
);
break
;
#endif
#if defined(IOMGR_ENABLED_MIO_POSIX)
case
IO_MANAGER_MIO_POSIX
:
/* Posix implementation in posix/Signals.c
...
...
This diff is collapsed.
Click to expand it.
rts/RtsStartup.c
+
0
−
1
View file @
877a2a80
...
...
@@ -211,7 +211,6 @@ static void initBuiltinGcRoots(void)
getStablePtr
((
StgPtr
)
interruptIOManager_closure
);
getStablePtr
((
StgPtr
)
ioManagerCapabilitiesChanged_closure
);
#if !defined(mingw32_HOST_OS)
getStablePtr
((
StgPtr
)
blockedOnBadFD_closure
);
getStablePtr
((
StgPtr
)
runHandlersPtr_closure
);
#else
getStablePtr
((
StgPtr
)
processRemoteCompletion_closure
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment