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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Alexis King
GHC
Commits
c5e9e310
Commit
c5e9e310
authored
16 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
avoid a crash: don't return unless the run queue has some threads in it
parent
2ad5ee9e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rts/win32/AwaitEvent.c
+3
-6
3 additions, 6 deletions
rts/win32/AwaitEvent.c
with
3 additions
and
6 deletions
rts/win32/AwaitEvent.c
+
3
−
6
View file @
c5e9e310
...
...
@@ -45,14 +45,11 @@ awaitEvent(rtsBool wait)
return
;
}
if
(
!
ret
)
{
return
;
/* still hold the lock */
}
// Return to the scheduler if:
// The return value from awaitRequests() is a red herring: ignore
// it. Return to the scheduler if !wait, or
//
// - we were interrupted
// -
new threads have arrived
// -
the run-queue is now non- empty
}
while
(
wait
&&
sched_state
==
SCHED_RUNNING
...
...
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