summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Version.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2016-05-20 19:18:20 +0000
committerGreg Clayton <gclayton@apple.com>2016-05-20 19:18:20 +0000
commit259d786065880a2bdad7dee756182a220e14cfe5 (patch)
treec7c2cad821492668a9899b9340dbb1219526cf68 /clang/lib/Basic/Version.cpp
parentd8ed65dda0b10b5d9fa6ebd2da46e733fbde5512 (diff)
downloadbcm5719-llvm-259d786065880a2bdad7dee756182a220e14cfe5.tar.gz
bcm5719-llvm-259d786065880a2bdad7dee756182a220e14cfe5.zip
Adopt mmap flags that allow mmap'ed memory to be less crash prone.
On Darwin if a mmap file is code signed and the code signature is invalid, it used to crash. If we specify the MAP_RESILIENT_CODESIGN mmap flag when mapping a file for reading, we can avoid crashing. Another mmap flag named MAP_RESILIENT_MEDIA allows us to survive if we mmap files that are on removable media like network servers or removable hard drives. If a file was mapped and later the media that had the file became unavailable, we would crash when we would touch the next page that wasn't paged in. Now it will return zeroes and stop of from us from crashing. <rdar://problem/25918698> llvm-svn: 270254
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud