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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
adfda4d4
Commit
adfda4d4
authored
Apr 10, 1998
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
warning removed
Rev: src/gc.c:1.34
parent
9d098298
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gc.c
+8
-2
8 additions, 2 deletions
src/gc.c
with
8 additions
and
2 deletions
src/gc.c
+
8
−
2
View file @
adfda4d4
...
...
@@ -25,7 +25,7 @@ struct callback *gc_evaluator_callback=0;
#include
"main.h"
#include
<math.h>
RCSID
(
"$Id: gc.c,v 1.3
3
1998/04/10 04:
37:38
hubbe Exp $"
);
RCSID
(
"$Id: gc.c,v 1.3
4
1998/04/10 04:
48:41
hubbe Exp $"
);
/* Run garbage collect approximate every time we have
* 20 percent of all arrays, objects and programs is
...
...
@@ -101,7 +101,13 @@ static struct marker *getmark(void *a)
unsigned
long
hashval
;
struct
marker
*
m
;
hashval
=
((
unsigned
long
)
a
)
%
hashsize
;
hashval
=
(
unsigned
long
)
a
;
hashval
%=
hashsize
;
#ifdef DEBUG
if
(
hashval
>=
hashsize
)
fatal
(
"Compiler has buggy modulo operator.
\n
"
);
#endif
for
(
m
=
hash
[
hashval
];
m
;
m
=
m
->
next
)
if
(
m
->
marked
==
a
)
...
...
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