Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Bin He
openairinterface5G
Commits
090fcc5a
Commit
090fcc5a
authored
6 years ago
by
Thomas Laurent
Browse files
Options
Downloads
Patches
Plain Diff
move mem_block to heap
parent
798c37aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/UTIL/MEM/mem_block.c
+2
-0
2 additions, 0 deletions
openair2/UTIL/MEM/mem_block.c
openair2/UTIL/MEM/mem_block.h
+2
-1
2 additions, 1 deletion
openair2/UTIL/MEM/mem_block.h
with
4 additions
and
1 deletion
openair2/UTIL/MEM/mem_block.c
+
2
−
0
View file @
090fcc5a
...
@@ -61,6 +61,7 @@ uint32_t counters[14] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
...
@@ -61,6 +61,7 @@ uint32_t counters[14] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
/*
/*
* initialize all ures
* initialize all ures
*/
*/
extern
mem_pool
*
memBlockVar
;
void
*
void
*
pool_buffer_init
(
void
)
pool_buffer_init
(
void
)
{
{
...
@@ -68,6 +69,7 @@ pool_buffer_init (void)
...
@@ -68,6 +69,7 @@ pool_buffer_init (void)
uint32_t
index
,
mb_index
,
pool_index
;
uint32_t
index
,
mb_index
,
pool_index
;
mem_pool
*
memory
=
(
mem_pool
*
)
&
mem_block_var
;
mem_pool
*
memory
=
(
mem_pool
*
)
&
mem_block_var
;
memBlockVar
=
malloc
(
sizeof
(
mem_pool
));
int
pool_sizes
[
14
]
=
{
MEM_MNGT_MB0_NB_BLOCKS
,
MEM_MNGT_MB1_NB_BLOCKS
,
int
pool_sizes
[
14
]
=
{
MEM_MNGT_MB0_NB_BLOCKS
,
MEM_MNGT_MB1_NB_BLOCKS
,
MEM_MNGT_MB2_NB_BLOCKS
,
MEM_MNGT_MB3_NB_BLOCKS
,
MEM_MNGT_MB2_NB_BLOCKS
,
MEM_MNGT_MB3_NB_BLOCKS
,
MEM_MNGT_MB4_NB_BLOCKS
,
MEM_MNGT_MB5_NB_BLOCKS
,
MEM_MNGT_MB4_NB_BLOCKS
,
MEM_MNGT_MB5_NB_BLOCKS
,
...
...
This diff is collapsed.
Click to expand it.
openair2/UTIL/MEM/mem_block.h
+
2
−
1
View file @
090fcc5a
...
@@ -178,7 +178,8 @@ typedef struct {
...
@@ -178,7 +178,8 @@ typedef struct {
}
mem_pool
;
}
mem_pool
;
mem_pool
mem_block_var
;
mem_pool
*
memBlockVar
;
#define mem_block_var (*memBlockVar)
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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