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,252
Issues
4,252
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
398
Merge Requests
398
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
709599a8
Commit
709599a8
authored
Jan 17, 2007
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addition to "Eagerly raise a blocked exception" to fix unreg case
parent
866316bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
rts/Exception.cmm
rts/Exception.cmm
+19
-0
No files found.
rts/Exception.cmm
View file @
709599a8
...
...
@@ -68,6 +68,16 @@ INFO_TABLE_RET( stg_unblockAsyncExceptionszh_ret,
* we are about to raise an async exception in the current
* thread, which might result in the thread being killed.
*/
#if
ndef
REG_R1
/*
* raiseAsync assumes that the stack is in ThreadRunGHC state,
* i.e. with a return address on the top. In unreg mode, the
* return value for IO is on top of the return address, so we
* need to make a small adjustment here.
*/
Sp_adj
(
1
);
#endif
SAVE_THREAD_STATE
();
r
=
foreign
"
C
"
maybePerformBlockedException
(
MyCapability
()
"
ptr
"
,
CurrentTSO
"
ptr
"
)
[
R1
];
...
...
@@ -82,6 +92,15 @@ INFO_TABLE_RET( stg_unblockAsyncExceptionszh_ret,
jump
%ENTRY_CODE
(
Sp
(
0
));
}
}
#if
ndef
REG_R1
/*
* Readjust stack in unregisterised mode if we didn't raise an
* exception, see above
*/
else
{
Sp_adj
(
-1
);
}
#endif
}
#if
def
REG_R1
...
...
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