summaryrefslogtreecommitdiff
path: root/libs/ui/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Ji-Hwan Lee <jihwan@google.com> 2011-12-15 03:53:24 +0900
committer Ji-Hwan Lee <jihwan@google.com> 2011-12-15 04:37:22 +0900
commitc4cd5301d4978dda5266194625ef4fd7f9d3dde4 (patch)
treeda3299dbecd92265eefdcfc43faf3223a0130323 /libs/ui/KeyLayoutMap.cpp
parentb3351102456b2cf626691616fef3a308c8c761aa (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
Diffstat (limited to 'libs/ui/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions