summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJi-Hwan Lee <jihwan@google.com>2011-12-15 03:53:24 +0900
committerJi-Hwan Lee <jihwan@google.com>2011-12-15 04:37:22 +0900
commitc17d9b75b636e2db164ec4213252b06cfb474924 (patch)
treeb9432bd98b915b2e8e9a02ba36ff675f31d45afd /data
parent17b289048766d6b101e70061fe5774ec8f370b55 (diff)
downloadframeworks_base-c17d9b75b636e2db164ec4213252b06cfb474924.zip
frameworks_base-c17d9b75b636e2db164ec4213252b06cfb474924.tar.gz
frameworks_base-c17d9b75b636e2db164ec4213252b06cfb474924.tar.bz2
Fix invalid madvise() during concurrent alloc/dealloc of MemoryDealer
Currently, madvise(MADV_REMOVE) is called after deallocation. Another thread might allocate (and even write) the same region between deallocation and madvise(), in which case the new thread will fail to read what it have written. So, call deallocate() after madvise(MADV_REMOVE). Bug: 5654596 Change-Id: I26f36cd6013de499090768a0ddc68206a4a68219
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions