Mercurial > hg > graal-compiler
changeset 5909:9eaf473fff9b
7142641: -Xshared:on fails on ARM
Summary: map read-only pages MAP_PRIVATE instead of MAP_SHARED
Reviewed-by: dcubed, dholmes
Contributed-by: dean.long@oracle.com
author | dlong |
---|---|
date | Wed, 29 Feb 2012 12:58:49 -0500 |
parents | 701a83c86f28 |
children | 03cb7c836ef3 |
files | src/os/linux/vm/os_linux.cpp |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Tue Feb 21 13:14:55 2012 -0500 +++ b/src/os/linux/vm/os_linux.cpp Wed Feb 29 12:58:49 2012 -0500 @@ -4690,14 +4690,12 @@ char *addr, size_t bytes, bool read_only, bool allow_exec) { int prot; - int flags; + int flags = MAP_PRIVATE; if (read_only) { prot = PROT_READ; - flags = MAP_SHARED; } else { prot = PROT_READ | PROT_WRITE; - flags = MAP_PRIVATE; } if (allow_exec) {