]> git.openfabrics.org - ~ardavis/dapl.git/commit
dapltest: Implement a malloc() threshold for the completion reaping.
authorArlin Davis <arlin.r.davis@intel.com>
Thu, 16 Jul 2009 19:41:22 +0000 (12:41 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Thu, 16 Jul 2009 19:41:22 +0000 (12:41 -0700)
commit1548405a377d2bd17938df69419e9bcf3364d91a
treee7479c2f0c0e93410333241bd8dc8781b3e7b503
parentf6311ca7295230bf9efbcddc639fa8e1065b1f3d
dapltest: Implement a malloc() threshold for the completion reaping.

change byte vector allocation to stack in functions:
  DT_handle_send_op, DT_handle_rdma_op & DT_handle_recv_op.

When allocation size is under the threshold, use a stack local
allocation instead of malloc/free.  Move redundant bzero() to
be called only in the case of using local stack allocation as
DT_Mdep_malloc() already does a bzero(). Consolidate error handling
return and free()check to a single point by using goto.

Signed-off-by: Stan Smith <stan.smith@intel.com>
test/dapltest/test/dapl_transaction_util.c