AMPI: Optimize behavior of AmpiMsgPool::newAmpiMsg 83/5083/6
authorEvan Ramos <evan@hpccharm.com>
Fri, 12 Apr 2019 19:20:07 +0000 (14:20 -0500)
committerEvan Ramos <evan@hpccharm.com>
Fri, 12 Apr 2019 23:05:48 +0000 (18:05 -0500)
commit99f39380b91deb4aea781590b00f9f9599f743ce
tree3ce97622be28ac9fd853a149926b4c58f8ad595b
parent8fdceda0fa73f7668ecb72bb4f3a5f0afea932b8
AMPI: Optimize behavior of AmpiMsgPool::newAmpiMsg

1. Compare the requested length with the true size of individual
messages instead of the pool's msgLength.
2. When allocating new messages that are smaller than msgLength, use
msgLength as their true size so they are eligible for reuse in the pool.

Change-Id: If3a8f05eed7a0a798146ed22aadf195f8b9dcdcf
src/libs/ck-libs/ampi/ampiimpl.h