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
4b6a3518
Commit
4b6a3518
authored
Apr 06, 2016
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use _ReadWriteBarrier() rather than MemoryBarrier() for preventing compile optimization
parent
fd7a8d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
storage/innobase/include/ut0ut.h
storage/innobase/include/ut0ut.h
+1
-1
storage/xtradb/include/ut0ut.h
storage/xtradb/include/ut0ut.h
+1
-1
No files found.
storage/innobase/include/ut0ut.h
View file @
4b6a3518
...
...
@@ -100,7 +100,7 @@ struct ut_when_dtor {
#if defined (__GNUC__)
# define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#elif defined (_MSC_VER)
# define UT_COMPILER_BARRIER()
Memory
Barrier()
# define UT_COMPILER_BARRIER()
_ReadWrite
Barrier()
#else
# define UT_COMPILER_BARRIER()
#endif
...
...
storage/xtradb/include/ut0ut.h
View file @
4b6a3518
...
...
@@ -97,7 +97,7 @@ struct ut_when_dtor {
#if defined (__GNUC__)
# define UT_COMPILER_BARRIER() __asm__ __volatile__ ("":::"memory")
#elif defined (_MSC_VER)
# define UT_COMPILER_BARRIER()
Memory
Barrier()
# define UT_COMPILER_BARRIER()
_ReadWrite
Barrier()
#else
# define UT_COMPILER_BARRIER()
#endif
...
...
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