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
a97c96cf
Commit
a97c96cf
authored
Mar 28, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into polly.local:/home/kaa/src/maint/mysql-5.0-maint
parents
291a9e09
efab330d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mysys/my_malloc.c
mysys/my_malloc.c
+1
-1
mysys/safemalloc.c
mysys/safemalloc.c
+2
-2
No files found.
mysys/my_malloc.c
View file @
a97c96cf
...
...
@@ -37,7 +37,7 @@ gptr my_malloc(unsigned int size, myf my_flags)
if
(
my_flags
&
MY_FAE
)
error_handler_hook
=
fatal_error_handler_hook
;
if
(
my_flags
&
(
MY_FAE
+
MY_WME
))
my_error
(
EE_OUTOFMEMORY
,
MYF
(
ME_BELL
+
ME_WAITTANG
),
size
);
my_error
(
EE_OUTOFMEMORY
,
MYF
(
ME_BELL
+
ME_WAITTANG
+
ME_NOREFRESH
),
size
);
if
(
my_flags
&
MY_FAE
)
exit
(
1
);
}
...
...
mysys/safemalloc.c
View file @
a97c96cf
...
...
@@ -150,11 +150,11 @@ gptr _mymalloc(uint size, const char *filename, uint lineno, myf MyFlags)
char
buff
[
SC_MAXWIDTH
];
my_errno
=
errno
;
sprintf
(
buff
,
"Out of memory at line %d, '%s'"
,
lineno
,
filename
);
my_message
(
EE_OUTOFMEMORY
,
buff
,
MYF
(
ME_BELL
+
ME_WAITTANG
));
my_message
(
EE_OUTOFMEMORY
,
buff
,
MYF
(
ME_BELL
+
ME_WAITTANG
+
ME_NOREFRESH
));
sprintf
(
buff
,
"needed %d byte (%ldk), memory in use: %ld bytes (%ldk)"
,
size
,
(
size
+
1023L
)
/
1024L
,
sf_malloc_max_memory
,
(
sf_malloc_max_memory
+
1023L
)
/
1024L
);
my_message
(
EE_OUTOFMEMORY
,
buff
,
MYF
(
ME_BELL
+
ME_WAITTANG
));
my_message
(
EE_OUTOFMEMORY
,
buff
,
MYF
(
ME_BELL
+
ME_WAITTANG
+
ME_NOREFRESH
));
}
DBUG_PRINT
(
"error"
,(
"Out of memory, in use: %ld at line %d, '%s'"
,
sf_malloc_max_memory
,
lineno
,
filename
));
...
...
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