Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
sds-tests
Commits
20e13168
Commit
20e13168
authored
Dec 13, 2018
by
Matthieu Dorier
Browse files
use MAP_SHARED instead of MAP_PRIVATE
parent
b26ad8d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
perf-regression/margo-p2p-bw.c
View file @
20e13168
...
...
@@ -611,7 +611,7 @@ static void* custom_mmap_alloc(const char* filename, size_t size)
fclose
(
fptr
);
int
fd
=
open
(
filename
,
O_RDWR
);
assert
(
fd
);
void
*
addr
=
mmap
(
NULL
,
size
,
PROT_READ
|
PROT_WRITE
,
MAP_
PRIVATE
|
MAP_POPULATE
,
fd
,
0
);
void
*
addr
=
mmap
(
NULL
,
size
,
PROT_READ
|
PROT_WRITE
,
MAP_
SHARED
|
MAP_POPULATE
,
fd
,
0
);
close
(
fd
);
return
addr
;
}
...
...
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