Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
b088ab22
Commit
b088ab22
authored
25 years ago
by
Martin Stjernholm
Browse files
Options
Downloads
Patches
Plain Diff
Compatibility fix in debug code.
Rev: src/gc.c:1.64
parent
88eb0e90
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gc.c
+11
-2
11 additions, 2 deletions
src/gc.c
with
11 additions
and
2 deletions
src/gc.c
+
11
−
2
View file @
b088ab22
...
...
@@ -29,7 +29,7 @@ struct callback *gc_evaluator_callback=0;
#include
"block_alloc.h"
RCSID
(
"$Id: gc.c,v 1.6
3
2000/04/1
4 17:56:20
mast Exp $"
);
RCSID
(
"$Id: gc.c,v 1.6
4
2000/04/1
5 01:04:01
mast Exp $"
);
/* Run garbage collect approximate every time we have
* 20 percent of all arrays, objects and programs is
...
...
@@ -800,7 +800,9 @@ void do_gc(void)
INT32
tmp2
;
double
multiplier
;
#ifdef PIKE_DEBUG
#ifdef HAVE_GETHRTIME
hrtime_t
gcstarttime
;
#endif
#endif
if
(
Pike_in_gc
)
return
;
...
...
@@ -817,7 +819,9 @@ void do_gc(void)
#ifdef PIKE_DEBUG
if
(
t_flag
)
{
fprintf
(
stderr
,
"Garbage collecting ... "
);
#ifdef HAVE_GETHRTIME
gcstarttime
=
gethrtime
();
#endif
}
if
(
num_objects
<
0
)
fatal
(
"Panic, less than zero objects!
\n
"
);
...
...
@@ -917,7 +921,12 @@ void do_gc(void)
if
(
t_flag
)
fprintf
(
stderr
,
"done (freed %ld of %ld objects), %ld ms.
\n
"
,
(
long
)(
tmp2
-
num_objects
),(
long
)
tmp2
,
(
long
)((
gethrtime
()
-
gcstarttime
)
/
1000000
));
#ifdef HAVE_GETHRTIME
(
long
)((
gethrtime
()
-
gcstarttime
)
/
1000000
)
#else
0l
#endif
);
#endif
#ifdef ALWAYS_GC
...
...
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