Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
core
tarantool
Commits
335b48a5
Commit
335b48a5
authored
13 years ago
by
Roman Tokarev
Browse files
Options
Downloads
Patches
Plain Diff
Additional changes for commit
f5c4069d
.
parent
f5c4069d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/palloc.c
+4
-3
4 additions, 3 deletions
core/palloc.c
with
4 additions
and
3 deletions
core/palloc.c
+
4
−
3
View file @
335b48a5
...
...
@@ -39,6 +39,8 @@
#include
<tbuf.h>
#include
<stat.h>
#define PALLOC_POOL_NAME_MAXLEN 16
struct
chunk
{
uint32_t
magic
;
void
*
brk
;
...
...
@@ -66,7 +68,7 @@ struct palloc_pool {
struct
chunk_list_head
chunks
;
SLIST_ENTRY
(
palloc_pool
)
link
;
size_t
allocated
;
char
name
[
16
];
char
name
[
PALLOC_POOL_NAME_MAXLEN
];
};
SLIST_HEAD
(
palloc_pool_head
,
palloc_pool
)
pools
;
...
...
@@ -371,8 +373,7 @@ palloc_stat(struct tbuf *buf)
void
palloc_set_name
(
struct
palloc_pool
*
pool
,
const
char
*
name
)
{
if
(
name
==
NULL
)
name
=
"undefined"
;
assert
(
name
!=
NULL
);
snprintf
(
pool
->
name
,
sizeof
(
pool
->
name
),
"%s"
,
name
);
}
...
...
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