commit | c17d9b75b636e2db164ec4213252b06cfb474924 | [log] [tgz] |
---|---|---|
author | Ji-Hwan Lee <jihwan@google.com> | Thu Dec 15 03:53:24 2011 +0900 |
committer | Ji-Hwan Lee <jihwan@google.com> | Thu Dec 15 04:37:22 2011 +0900 |
tree | b9432bd98b915b2e8e9a02ba36ff675f31d45afd | |
parent | 17b289048766d6b101e70061fe5774ec8f370b55 [diff] |
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