Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ee0bfdf5
Commit
ee0bfdf5
authored
Jan 24, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 32 bit linux build. closes #297
git-svn-id:
file:///svn/tokudb@1856
c7de825b-a66e-492c-adef-691d508d4ae1
parent
98d31e20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
newbrt/memory.c
newbrt/memory.c
+3
-3
No files found.
newbrt/memory.c
View file @
ee0bfdf5
...
...
@@ -146,7 +146,7 @@ static void *freelist[FREELIST_LIMIT];
static
int
malloc_counts
[
MALLOC_SIZE_COUNTING_LIMIT
];
// We rely on static variables being initialized to 0.
static
int
fresh_malloc_counts
[
MALLOC_SIZE_COUNTING_LIMIT
];
// We rely on static variables being initialized to 0.
static
int
other_malloc_count
=
0
,
fresh_other_malloc_count
=
0
;
void
*
toku_malloc
(
unsigned
long
size
)
{
void
*
toku_malloc
(
size_t
size
)
{
void
*
r
;
errno
=
0
;
if
(
size
<
MALLOC_SIZE_COUNTING_LIMIT
)
malloc_counts
[
size
]
++
;
...
...
@@ -168,7 +168,7 @@ void *toku_malloc(unsigned long size) {
//if ((long)r==0x80523f8) { printf("%s:%d %p size=%ld\n", __FILE__, __LINE__, r, size); }
return
r
;
}
void
*
toku_tagmalloc
(
unsigned
long
size
,
int
typtag
)
{
void
*
toku_tagmalloc
(
size_t
size
,
int
typtag
)
{
//printf("%s:%d tagmalloc\n", __FILE__, __LINE__);
void
*
r
=
toku_malloc
(
size
);
assert
(
size
>
sizeof
(
int
));
...
...
@@ -192,7 +192,7 @@ void toku_free(void* p) {
actual_free
(
p
);
}
void
toku_free_n
(
void
*
p
,
unsigned
long
size
)
{
void
toku_free_n
(
void
*
p
,
size_t
size
)
{
//printf("%s:%d free(%p)\n", __FILE__, __LINE__, p);
note_did_free
(
p
);
if
(
size
>=
sizeof
(
void
*
)
&&
size
<
FREELIST_LIMIT
)
{
...
...
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