Change to use c++ template define pool_malloc_tester() function.

Signed-off-by: shines77 <gz_shines@msn.com>
Merge branch 'next'