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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
Tobias Decking
GHC
Commits
f4b45682
Commit
f4b45682
authored
Apr 22, 2005
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2005-04-22 14:19:07 by simonmar]
Fix creation of raise_info closures: they're THUNKs
parent
6444de58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ghc/rts/Schedule.c
ghc/rts/Schedule.c
+5
-5
No files found.
ghc/rts/Schedule.c
View file @
f4b45682
...
...
@@ -3739,12 +3739,12 @@ raiseAsync_(StgTSO *tso, StgClosure *exception, rtsBool stop_at_atomically)
#ifdef PROFILING
StgCatchFrame
*
cf
=
(
StgCatchFrame
*
)
frame
;
#endif
Stg
Closure
*
raise
;
Stg
Thunk
*
raise
;
// we've got an exception to raise, so let's pass it to the
// handler in this frame.
//
raise
=
(
Stg
Closure
*
)
allocate
(
sizeofW
(
StgClosure
)
+
1
);
raise
=
(
Stg
Thunk
*
)
allocate
(
sizeofW
(
StgThunk
)
+
1
);
TICK_ALLOC_SE_THK
(
1
,
0
);
SET_HDR
(
raise
,
&
stg_raise_info
,
cf
->
header
.
prof
.
ccs
);
raise
->
payload
[
0
]
=
exception
;
...
...
@@ -3849,7 +3849,7 @@ raiseAsync_(StgTSO *tso, StgClosure *exception, rtsBool stop_at_atomically)
StgWord
raiseExceptionHelper
(
StgTSO
*
tso
,
StgClosure
*
exception
)
{
Stg
Closure
*
raise_closure
=
NULL
;
Stg
Thunk
*
raise_closure
=
NULL
;
StgPtr
p
,
next
;
StgRetInfoTable
*
info
;
//
...
...
@@ -3886,11 +3886,11 @@ raiseExceptionHelper (StgTSO *tso, StgClosure *exception)
// Only create raise_closure if we need to.
if
(
raise_closure
==
NULL
)
{
raise_closure
=
(
Stg
Closure
*
)
allocate
(
sizeofW
(
StgClosure
)
+
MIN_UPD_SIZE
);
(
Stg
Thunk
*
)
allocate
(
sizeofW
(
StgThunk
)
+
MIN_UPD_SIZE
);
SET_HDR
(
raise_closure
,
&
stg_raise_info
,
CCCS
);
raise_closure
->
payload
[
0
]
=
exception
;
}
UPD_IND
(((
StgUpdateFrame
*
)
p
)
->
updatee
,
raise_closure
);
UPD_IND
(((
StgUpdateFrame
*
)
p
)
->
updatee
,
(
StgClosure
*
)
raise_closure
);
p
=
next
;
continue
;
...
...
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