]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
port_posix: use posix_memalign() for aligned_alloc
authorKefu Chai <tchaikov@gmail.com>
Thu, 24 May 2018 18:59:27 +0000 (11:59 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 24 May 2018 19:13:16 +0000 (12:13 -0700)
commitc465509379d72068c19b55dbc69bf08d8c387fbe
tree4352af8b168e623d09057a6269d8c3a5b874db20
parent7a99c04311e781915dbd23c2e4e3c23257290cb4
port_posix: use posix_memalign() for aligned_alloc

Summary:
to workaround issue of http://tracker.ceph.com/issues/21422 .
and in tcmalloc aligned_alloc and posix_memalign() are basically the
same thing. the same applies to GNU glibc.

fixes #3175

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Closes https://github.com/facebook/rocksdb/pull/3862

Differential Revision: D8147930

Pulled By: yiwu-arbug

fbshipit-source-id: 355afe93c4dd0a96a0d711ef190e8b86fbe8d11d
port/port_posix.cc