Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Kopp
Ardix
Commits
f85006f2
Verified
Commit
f85006f2
authored
Aug 09, 2021
by
Felix Kopp
Browse files
malloc: remove obsolete assert statements
A relict of debugging on my host.
parent
8e967857
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/malloc.c
View file @
f85006f2
...
...
@@ -359,9 +359,6 @@ static struct memblk *blk_slice(struct list_head *heap, struct memblk *blk, size
{
list_delete
(
&
blk
->
list
);
assert
((
slice_size
&
SIZE_MSK
)
==
slice_size
);
assert
(
slice_size
>
0
);
size_t
rest_size
=
blk_get_size
(
blk
)
-
slice_size
-
OVERHEAD
;
if
(
rest_size
<
MIN_SIZE
)
{
blk_set_alloc
(
blk
);
...
...
@@ -395,10 +392,7 @@ static inline size_t blk_get_size(struct memblk *blk)
static
void
blk_set_size
(
struct
memblk
*
blk
,
size_t
size
)
{
assert
((
size
&
SIZE_MSK
)
==
size
);
/* don't affect flags */
blk
->
size
&=
~
SIZE_MSK
;
blk
->
size
|=
size
;
...
...
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