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
Alex D
GHC
Commits
857005a7
Commit
857005a7
authored
May 30, 2018
by
Ömer Sinan Ağacan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move printMutableList to Printer.c next to other printers
parent
929bbe4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
33 deletions
+16
-33
rts/Printer.c
rts/Printer.c
+15
-7
rts/Printer.h
rts/Printer.h
+1
-0
rts/sm/GCUtils.c
rts/sm/GCUtils.c
+0
-21
rts/sm/GCUtils.h
rts/sm/GCUtils.h
+0
-5
No files found.
rts/Printer.c
View file @
857005a7
...
...
@@ -425,6 +425,21 @@ printClosure( const StgClosure *obj )
}
}
void
printMutableList
(
bdescr
*
bd
)
{
StgPtr
p
;
debugBelch
(
"mutable list %p: "
,
bd
);
for
(;
bd
!=
NULL
;
bd
=
bd
->
link
)
{
for
(
p
=
bd
->
start
;
p
<
bd
->
free
;
p
++
)
{
debugBelch
(
"%p (%s), "
,
(
void
*
)
*
p
,
info_type
((
StgClosure
*
)
*
p
));
}
}
debugBelch
(
"
\n
"
);
}
// If you know you have an UPDATE_FRAME, but want to know exactly which.
const
char
*
info_update_frame
(
const
StgClosure
*
closure
)
{
...
...
@@ -444,13 +459,6 @@ const char *info_update_frame(const StgClosure *closure)
}
}
/*
void printGraph( StgClosure *obj )
{
printClosure(obj);
}
*/
static
void
printSmallBitmap
(
StgPtr
spBottom
,
StgPtr
payload
,
StgWord
bitmap
,
uint32_t
size
)
...
...
rts/Printer.h
View file @
857005a7
...
...
@@ -24,6 +24,7 @@ const char * info_update_frame ( const StgClosure *closure );
extern
void
printClosure
(
const
StgClosure
*
obj
);
extern
void
printStackChunk
(
StgPtr
sp
,
StgPtr
spLim
);
extern
void
printTSO
(
StgTSO
*
tso
);
extern
void
printMutableList
(
bdescr
*
bd
);
extern
void
DEBUG_LoadSymbols
(
const
char
*
name
);
...
...
rts/sm/GCUtils.c
View file @
857005a7
...
...
@@ -341,24 +341,3 @@ alloc_todo_block (gen_workspace *ws, uint32_t size)
return
ws
->
todo_free
;
}
/* -----------------------------------------------------------------------------
* Debugging
* -------------------------------------------------------------------------- */
#if defined(DEBUG)
void
printMutableList
(
bdescr
*
bd
)
{
StgPtr
p
;
debugBelch
(
"mutable list %p: "
,
bd
);
for
(;
bd
!=
NULL
;
bd
=
bd
->
link
)
{
for
(
p
=
bd
->
start
;
p
<
bd
->
free
;
p
++
)
{
debugBelch
(
"%p (%s), "
,
(
void
*
)
*
p
,
info_type
((
StgClosure
*
)
*
p
));
}
}
debugBelch
(
"
\n
"
);
}
#endif
/* DEBUG */
rts/sm/GCUtils.h
View file @
857005a7
...
...
@@ -50,11 +50,6 @@ isPartiallyFull(bdescr *bd)
return
(
bd
->
free
+
WORK_UNIT_WORDS
<
bd
->
start
+
BLOCK_SIZE_W
);
}
#if defined(DEBUG)
void
printMutableList
(
bdescr
*
bd
);
#endif
// Version of recordMutableGen for use during GC. This uses the
// mutable lists attached to the current gc_thread structure, which
// are the same as the mutable lists on the Capability.
...
...
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