]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Thread.cc: remove malloc/free pair
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Fri, 17 Jul 2015 10:43:52 +0000 (12:43 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 20 Oct 2015 09:37:03 +0000 (11:37 +0200)
commit77d6426a8323db91a60f246f385826c35f31521c
treee0d17d16ef7a4d4ca31b9dd9e161da6c61e4f95f
parent028da252d85733fcc7d8495750b9ae97043cb0dd
Thread.cc: remove malloc/free pair

There's no need for mallocing pthread_attr_t in Thread::try_create(),
it can be located on stack as it is freed in same function. This reduces
pressure put on memory manager.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
(cherry picked from commit 614ac0f4e375f3dd008c8937d3f89f6005d6e0a0)
src/common/Thread.cc