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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7284c72d
Commit
7284c72d
authored
Apr 21, 2005
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Make branch prediction assume that assertions do not fail.
parent
c6e329d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
innobase/include/ut0dbg.h
innobase/include/ut0dbg.h
+2
-4
innobase/ut/ut0dbg.c
innobase/ut/ut0dbg.c
+0
-3
No files found.
innobase/include/ut0dbg.h
View file @
7284c72d
...
@@ -13,8 +13,6 @@ Created 1/30/1994 Heikki Tuuri
...
@@ -13,8 +13,6 @@ Created 1/30/1994 Heikki Tuuri
#include <stdlib.h>
#include <stdlib.h>
#include "os0thread.h"
#include "os0thread.h"
extern
ulint
ut_dbg_zero
;
/* This is used to eliminate
compiler warnings */
extern
ibool
ut_dbg_stop_threads
;
extern
ibool
ut_dbg_stop_threads
;
extern
ulint
*
ut_dbg_null_ptr
;
extern
ulint
*
ut_dbg_null_ptr
;
...
@@ -26,7 +24,7 @@ extern const char* ut_dbg_msg_stop;
...
@@ -26,7 +24,7 @@ extern const char* ut_dbg_msg_stop;
#ifdef __NETWARE__
#ifdef __NETWARE__
extern
ibool
panic_shutdown
;
extern
ibool
panic_shutdown
;
#define ut_a(EXPR) do {\
#define ut_a(EXPR) do {\
if (
!((ulint)(EXPR) + ut_dbg_zero
)) {\
if (
UNIV_UNLIKELY(!((ulint)(EXPR))
)) {\
ut_print_timestamp(stderr);\
ut_print_timestamp(stderr);\
fprintf(stderr, ut_dbg_msg_assert_fail,\
fprintf(stderr, ut_dbg_msg_assert_fail,\
os_thread_pf(os_thread_get_curr_id()), __FILE__,\
os_thread_pf(os_thread_get_curr_id()), __FILE__,\
...
@@ -55,7 +53,7 @@ extern ibool panic_shutdown;
...
@@ -55,7 +53,7 @@ extern ibool panic_shutdown;
} while (0)
} while (0)
#else
#else
#define ut_a(EXPR) do {\
#define ut_a(EXPR) do {\
if (
!((ulint)(EXPR) + ut_dbg_zero
)) {\
if (
UNIV_UNLIKELY(!((ulint)(EXPR))
)) {\
ut_print_timestamp(stderr);\
ut_print_timestamp(stderr);\
fprintf(stderr, ut_dbg_msg_assert_fail,\
fprintf(stderr, ut_dbg_msg_assert_fail,\
os_thread_pf(os_thread_get_curr_id()), __FILE__,\
os_thread_pf(os_thread_get_curr_id()), __FILE__,\
...
...
innobase/ut/ut0dbg.c
View file @
7284c72d
...
@@ -8,9 +8,6 @@ Created 1/30/1994 Heikki Tuuri
...
@@ -8,9 +8,6 @@ Created 1/30/1994 Heikki Tuuri
#include "univ.i"
#include "univ.i"
/* This is used to eliminate compiler warnings */
ulint
ut_dbg_zero
=
0
;
/* If this is set to TRUE all threads will stop into the next assertion
/* If this is set to TRUE all threads will stop into the next assertion
and assert */
and assert */
ibool
ut_dbg_stop_threads
=
FALSE
;
ibool
ut_dbg_stop_threads
=
FALSE
;
...
...
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