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,254
Issues
4,254
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
395
Merge Requests
395
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
178c1421
Commit
178c1421
authored
May 21, 2005
by
panne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2005-05-21 16:09:18 by panne]
Warning police (format strings, unused variables)
parent
faa8d785
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
ghc/rts/ProfHeap.c
ghc/rts/ProfHeap.c
+7
-7
ghc/rts/Schedule.c
ghc/rts/Schedule.c
+3
-3
ghc/rts/Stable.c
ghc/rts/Stable.c
+2
-2
ghc/rts/Timer.c
ghc/rts/Timer.c
+2
-0
No files found.
ghc/rts/ProfHeap.c
View file @
178c1421
...
...
@@ -744,15 +744,15 @@ dumpCensus( Census *census )
#ifdef PROFILING
if
(
RtsFlags
.
ProfFlags
.
doHeapProfile
==
HEAP_BY_LDV
)
{
fprintf
(
hp_file
,
"VOID
\t
%lu
\n
"
,
census
->
void_total
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"VOID
\t
%lu
\n
"
,
(
unsigned
long
)(
census
->
void_total
)
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"LAG
\t
%lu
\n
"
,
(
census
->
not_used
-
census
->
void_total
)
*
sizeof
(
W_
));
(
unsigned
long
)(
census
->
not_used
-
census
->
void_total
)
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"USE
\t
%lu
\n
"
,
(
census
->
used
-
census
->
drag_total
)
*
sizeof
(
W_
));
(
unsigned
long
)(
census
->
used
-
census
->
drag_total
)
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"INHERENT_USE
\t
%lu
\n
"
,
census
->
prim
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"DRAG
\t
%lu
\n
"
,
census
->
drag_total
*
sizeof
(
W_
));
(
unsigned
long
)(
census
->
prim
)
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"DRAG
\t
%lu
\n
"
,
(
unsigned
long
)(
census
->
drag_total
)
*
sizeof
(
W_
));
printSample
(
rtsFalse
,
census
->
time
);
return
;
}
...
...
@@ -830,7 +830,7 @@ dumpCensus( Census *census )
}
#endif
fprintf
(
hp_file
,
"
\t
%l
d
\n
"
,
count
*
sizeof
(
W_
));
fprintf
(
hp_file
,
"
\t
%l
u
\n
"
,
(
unsigned
long
)
count
*
sizeof
(
W_
));
}
printSample
(
rtsFalse
,
census
->
time
);
...
...
ghc/rts/Schedule.c
View file @
178c1421
...
...
@@ -4074,10 +4074,10 @@ printThreadBlockage(StgTSO *tso)
{
switch
(
tso
->
why_blocked
)
{
case
BlockedOnRead
:
debugBelch
(
"is blocked on read from fd %
ld"
,
tso
->
block_info
.
fd
);
debugBelch
(
"is blocked on read from fd %
d"
,
(
int
)(
tso
->
block_info
.
fd
)
);
break
;
case
BlockedOnWrite
:
debugBelch
(
"is blocked on write to fd %
ld"
,
tso
->
block_info
.
fd
);
debugBelch
(
"is blocked on write to fd %
d"
,
(
int
)(
tso
->
block_info
.
fd
)
);
break
;
#if defined(mingw32_HOST_OS)
case
BlockedOnDoProc
:
...
...
@@ -4085,7 +4085,7 @@ printThreadBlockage(StgTSO *tso)
break
;
#endif
case
BlockedOnDelay
:
debugBelch
(
"is blocked until %ld"
,
tso
->
block_info
.
target
);
debugBelch
(
"is blocked until %ld"
,
(
long
)(
tso
->
block_info
.
target
)
);
break
;
case
BlockedOnMVar
:
debugBelch
(
"is blocked on an MVar"
);
...
...
ghc/rts/Stable.c
View file @
178c1421
...
...
@@ -376,13 +376,13 @@ gcStablePtrTable( void )
if
(
p
->
sn_obj
==
NULL
)
{
// StableName object is dead
freeStableName
(
p
);
IF_DEBUG
(
stable
,
debugBelch
(
"GC'd Stable name %
l
d
\n
"
,
IF_DEBUG
(
stable
,
debugBelch
(
"GC'd Stable name %d
\n
"
,
p
-
stable_ptr_table
));
continue
;
}
else
{
p
->
addr
=
(
StgPtr
)
isAlive
((
StgClosure
*
)
p
->
addr
);
IF_DEBUG
(
stable
,
debugBelch
(
"Stable name %
l
d still alive at %p, ref %ld
\n
"
,
p
-
stable_ptr_table
,
p
->
addr
,
p
->
ref
));
IF_DEBUG
(
stable
,
debugBelch
(
"Stable name %d still alive at %p, ref %ld
\n
"
,
p
-
stable_ptr_table
,
p
->
addr
,
p
->
ref
));
}
}
}
...
...
ghc/rts/Timer.c
View file @
178c1421
...
...
@@ -30,8 +30,10 @@
/* ticks left before next pre-emptive context switch */
static
int
ticks_to_ctxt_switch
=
0
;
#if defined(RTS_SUPPORTS_THREADS)
/* idle ticks left before we perform a GC */
static
int
ticks_to_gc
=
0
;
#endif
/*
* Function: handle_tick()
...
...
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