aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenFactory.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2009-11-16 16:14:54 -0800
committerAndy McFadden <fadden@android.com>2009-11-16 16:48:09 -0800
commitb5ebe47515c9750c7347557075d3714ba7671aa9 (patch)
tree4e38825d1cc44389bbd839e7ae4a4669c109b394 /vm/compiler/codegen/arm/CodegenFactory.c
parent233a8609bbecdb92c7df0c9cbd3de5cd71c5dba7 (diff)
Restore support for DEX on FAT.
The recent change to mmap(read-write)+mprotect(read-only) doesn't seem to work on FAT filesystems like /sdcard. This caused problems for the code that opens Zip files and the code that opens DEX files. This change splits the "map file" function into "read only" and "writable read only" versions, using the former for Zip and the latter for DEX. Further, failure to mprotect(read-only) is now considered a soft failure and only causes a warning. The only apps that will be affected by this are those using /sdcard to hold optimized DEX data for "plugin" APKs. Also: moved the non-HAVE_POSIX_FILEMAP implementation of file mapping into a shared function. (Could probably go away entirely.) Also: fixed the expected output for test 071.
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenFactory.c')
0 files changed, 0 insertions, 0 deletions