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
Gesh
GHC
Commits
b11847c3
Commit
b11847c3
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-11-24 20:54:02 by sof]
ForeignObj debug output to stderr
parent
ef25c744
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ghc/runtime/storage/SMevac.lc
+4
-4
4 additions, 4 deletions
ghc/runtime/storage/SMevac.lc
ghc/runtime/storage/SMextn.lc
+9
-9
9 additions, 9 deletions
ghc/runtime/storage/SMextn.lc
ghc/runtime/storage/SMscan.lc
+8
-8
8 additions, 8 deletions
ghc/runtime/storage/SMscan.lc
with
21 additions
and
21 deletions
ghc/runtime/storage/SMevac.lc
+
4
−
4
View file @
b11847c3
...
...
@@ -563,8 +563,8 @@ EVAC_FN(ForeignObj)
#if defined(DEBUG)
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf("DEBUG: Evacuating ForeignObj(%x)=<%x,_,%x,%x>", evac, evac[0], evac[2], evac[3]);
printf(" Data = %x, Finaliser= %x, Next = %x\n",
f
printf(
stderr,
"DEBUG: Evacuating ForeignObj(%x)=<%x,_,%x,%x>", evac, evac[0], evac[2], evac[3]);
f
printf(
stderr,
" Data = %x, Finaliser= %x, Next = %x\n",
ForeignObj_CLOSURE_DATA(evac),
ForeignObj_CLOSURE_FINALISER(evac),
ForeignObj_CLOSURE_LINK(evac) );
...
...
@@ -580,8 +580,8 @@ EVAC_FN(ForeignObj)
#if defined(DEBUG)
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf("DEBUG: Evacuated ForeignObj(%x)=<%x,_,%x,%x>", ToHp, ToHp[0], ToHp[2], ToHp[3]);
printf(" Data = %x, Finaliser = %x, Next = %x\n",
f
printf(
stderr,
"DEBUG: Evacuated ForeignObj(%x)=<%x,_,%x,%x>", ToHp, ToHp[0], ToHp[2], ToHp[3]);
f
printf(
stderr,
" Data = %x, Finaliser = %x, Next = %x\n",
ForeignObj_CLOSURE_DATA(ToHp),
ForeignObj_CLOSURE_FINALISER(ToHp),
ForeignObj_CLOSURE_LINK(ToHp));
...
...
This diff is collapsed.
Click to expand it.
ghc/runtime/storage/SMextn.lc
+
9
−
9
View file @
b11847c3
...
...
@@ -64,7 +64,7 @@ TrashMem(from, to)
/* assertion overly strong - if free_mem == 0, sm->hp == sm->hplim */
/* ASSERT( from <= to ); */
if (RTSflags.GcFlags.trace)
printf("Trashing from 0x%lx to 0x%lx inclusive\n", (W_) from, (W_) to);
f
printf(
stderr,
"Trashing from 0x%lx to 0x%lx inclusive\n", (W_) from, (W_) to);
while (from <= to) {
*from++ = DEALLOCATED_TRASH;
}
...
...
@@ -161,11 +161,11 @@ Trace_ForeignObj( FOptr )
P_ FOptr;
{
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf("DEBUG: ForeignObj(%0x)=<%0x,%0x,%0x,%0x>\n", (W_) FOptr, (W_) FOptr[0], (W_) FOptr[1], (W_) FOptr[2], (W_) FOptr[3]);
printf(" Data = %0x, Finaliser = %0x, Next = %0x\n",
(W_) ForeignObj_CLOSURE_DATA(FOptr),
(W_) ForeignObj_CLOSURE_FINALISER(FOptr),
(W_) ForeignObj_CLOSURE_LINK(FOptr) );
f
printf(
stderr,
"DEBUG: ForeignObj(%0x)=<%0x,%0x,%0x,%0x>\n", (W_) FOptr, (W_) FOptr[0], (W_) FOptr[1], (W_) FOptr[2], (W_) FOptr[3]);
f
printf(
stderr,
" Data = %0x, Finaliser = %0x, Next = %0x\n",
(W_) ForeignObj_CLOSURE_DATA(FOptr),
(W_) ForeignObj_CLOSURE_FINALISER(FOptr),
(W_) ForeignObj_CLOSURE_LINK(FOptr) );
}
}
...
...
@@ -173,7 +173,7 @@ void
Trace_FOdies()
{
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf(" dying\n");
f
printf(
stderr,
" dying\n");
}
}
...
...
@@ -181,7 +181,7 @@ void
Trace_FOlives()
{
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf(" lived to tell the tale\n");
f
printf(
stderr,
" lived to tell the tale\n");
}
}
...
...
@@ -190,7 +190,7 @@ Trace_FOforwarded( FOPtr, newAddress )
P_ FOPtr, newAddress;
{
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf(" forwarded to %lx\n", (W_) newAddress);
f
printf(
stderr,
" forwarded to %lx\n", (W_) newAddress);
}
}
...
...
This diff is collapsed.
Click to expand it.
ghc/runtime/storage/SMscan.lc
+
8
−
8
View file @
b11847c3
...
...
@@ -1157,11 +1157,11 @@ _ScanMove_ForeignObj(STG_NO_ARGS) {
#if defined(DEBUG)
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf("Moving ForeignObj(%x)=<%x,%x,%x>", Scan, Scan[0], Scan[1], Scan[2]);
printf(" Data = %x, Finaliser = %x, Next = %x\n",
ForeignObj_CLOSURE_DATA(Scan),
ForeignObj_CLOSURE_FINALISER(Scan),
ForeignObj_CLOSURE_LINK(Scan) );
f
printf(
stderr,
"Moving ForeignObj(%x)=<%x,%x,%x>", Scan, Scan[0], Scan[1], Scan[2]);
f
printf(
stderr,
" Data = %x, Finaliser = %x, Next = %x\n",
ForeignObj_CLOSURE_DATA(Scan),
ForeignObj_CLOSURE_FINALISER(Scan),
ForeignObj_CLOSURE_LINK(Scan) );
}
#endif
...
...
@@ -1171,12 +1171,12 @@ _ScanMove_ForeignObj(STG_NO_ARGS) {
#if defined(DEBUG)
if (RTSflags.GcFlags.trace & DEBUG_TRACE_FOREIGNOBJS) {
printf("Moved ForeignObj(%x)=<%x,_,%x,%x,%x>", New, New[0], New[1], New[2], New[3]);
printf(" Data = %x, Finaliser = %x, Next = %x",
f
printf(
stderr,
"Moved ForeignObj(%x)=<%x,_,%x,%x,%x>", New, New[0], New[1], New[2], New[3]);
f
printf(
stderr,
" Data = %x, Finaliser = %x, Next = %x",
ForeignObj_CLOSURE_DATA(New),
ForeignObj_CLOSURE_FINALISER(New),
ForeignObj_CLOSURE_LINK(New) );
printf(", NewForeignObjList = %x\n", NewForeignObjList );
f
printf(
stderr,
", NewForeignObjList = %x\n", NewForeignObjList );
}
#endif
...
...
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