]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Not using aligned_alloc with gcc4 + asan
authorYi Wu <yiwu@fb.com>
Wed, 30 Aug 2017 04:41:46 +0000 (21:41 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 30 Aug 2017 04:56:02 +0000 (21:56 -0700)
commite83d6a02e31c8930d1fd267b2bb0476601f6232c
tree3e695185a7557d33c2e30c057ce4cebdd9aa4e3a
parent0980dc6c9abe263531cb313af56c5018b8f4b331
Not using aligned_alloc with gcc4 + asan

Summary:
GCC < 5 + ASAN does not instrument aligned_alloc, which can make ASAN
report false-positive with "free on address which was not malloc" error.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61693

Also suppress leak warning with LRUCache::DisownData().
Closes https://github.com/facebook/rocksdb/pull/2783

Differential Revision: D5696465

Pulled By: yiwu-arbug

fbshipit-source-id: 87c607c002511fa089b18cc35e24909bee0e74b4
cache/lru_cache.cc
port/port_posix.cc