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
968b35a2
Commit
968b35a2
authored
Oct 06, 2014
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use TOKU_ macros to handle !USE_VALGRIND
parent
192b5e65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
portability/toku_race_tools.h
portability/toku_race_tools.h
+4
-4
No files found.
portability/toku_race_tools.h
View file @
968b35a2
...
...
@@ -143,11 +143,11 @@ PATENT RIGHTS GRANT:
// racey access to src for the next sizeof(*src) bytes
template
<
typename
T
>
T
toku_drd_unsafe_fetch
(
T
*
src
)
{
VALGRIND_HG_DISABLE_CHECKING
(
src
,
sizeof
*
src
);
TOKU_
VALGRIND_HG_DISABLE_CHECKING
(
src
,
sizeof
*
src
);
TOKU_DRD_IGNORE_VAR
(
*
src
);
T
val
=
*
src
;
TOKU_DRD_STOP_IGNORING_VAR
(
*
src
);
VALGRIND_HG_ENABLE_CHECKING
(
src
,
sizeof
*
src
);
TOKU_
VALGRIND_HG_ENABLE_CHECKING
(
src
,
sizeof
*
src
);
return
val
;
}
...
...
@@ -155,9 +155,9 @@ T toku_drd_unsafe_fetch(T *src) {
// racey access to dest for the next sizeof(*dest) bytes
template
<
typename
T
>
void
toku_drd_unsafe_set
(
T
*
dest
,
const
T
src
)
{
VALGRIND_HG_DISABLE_CHECKING
(
dest
,
sizeof
*
dest
);
TOKU_
VALGRIND_HG_DISABLE_CHECKING
(
dest
,
sizeof
*
dest
);
TOKU_DRD_IGNORE_VAR
(
*
dest
);
*
dest
=
src
;
TOKU_DRD_STOP_IGNORING_VAR
(
*
dest
);
VALGRIND_HG_ENABLE_CHECKING
(
dest
,
sizeof
*
dest
);
TOKU_
VALGRIND_HG_ENABLE_CHECKING
(
dest
,
sizeof
*
dest
);
}
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