Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
e4799680
Unverified
Commit
e4799680
authored
Jun 02, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buddy.c: Mark a missing optimization for later
parent
2b239f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
buddy.c
src/buddy.c
+3
-2
No files found.
src/buddy.c
View file @
e4799680
...
...
@@ -592,7 +592,6 @@ page_merge(struct bitf **ff, size_t page)
#ifdef FREEPAGE_WHEN
struct
freepage
*
fp
;
double
d
,
latest
=
0
;
unsigned
deadline
=
1
;
#endif
assert
(
!
bitf_get
(
f
,
page
));
...
...
@@ -617,7 +616,8 @@ page_merge(struct bitf **ff, size_t page)
d
=
fp
->
fpa
.
when
;
if
(
d
>
latest
)
latest
=
d
;
deadline
&=
fp
->
fpa
.
deadline
;
// XXX would need proper deadline handling
//deadline &= fp->fpa.deadline;
#endif
f
=
*++
ff
;
page
>>=
1
;
...
...
@@ -658,6 +658,7 @@ page_fit(struct bitf **ff, size_t size, freepage_t page, const unsigned bit)
frp
(
page
)
|=
1
;
else
AN
(
page_free
(
f
,
mfr
(
page
,
|
1
)));
}
// follows from not pow2 requirement
assert
(
frp
(
page
)
&
1
);
...
...
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