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
691bf28a
Commit
691bf28a
authored
Dec 02, 2010
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use "rep; nop" in InnoDB if it is available and "pause" is not
parent
9bfb5ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
storage/innobase/include/ut0ut.h
storage/innobase/include/ut0ut.h
+2
-0
No files found.
storage/innobase/include/ut0ut.h
View file @
691bf28a
...
@@ -61,6 +61,8 @@ typedef time_t ib_time_t;
...
@@ -61,6 +61,8 @@ typedef time_t ib_time_t;
Also asm volatile may trigger a memory barrier (spilling all registers
Also asm volatile may trigger a memory barrier (spilling all registers
to memory). */
to memory). */
# define UT_RELAX_CPU() __asm__ __volatile__ ("pause")
# define UT_RELAX_CPU() __asm__ __volatile__ ("pause")
#elif defined(HAVE_FAKE_PAUSE_INSTRUCTION)
# define UT_RELAX_CPU() __asm__ __volatile__ ("rep; nop")
#elif defined(HAVE_ATOMIC_BUILTINS)
#elif defined(HAVE_ATOMIC_BUILTINS)
# define UT_RELAX_CPU() do { \
# define UT_RELAX_CPU() do { \
volatile lint volatile_var; \
volatile lint volatile_var; \
...
...
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