From 2f8174509ea9f844db11ebd9389de5168e85b132 Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Wed, 1 May 2013 15:06:30 -0500 Subject: [PATCH] Unconditionally check memory pool(s) for errors. Details: - Changed bli_mem_acquire_m() in bli_mem.c so that we still check if the memory pool is exhausted before checking out and returning a block, even if BLIS error checking has been disabled. These errors are useful because they likely indicate that BLIS was improperly configured for the code being run. --- frame/base/bli_mem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frame/base/bli_mem.c b/frame/base/bli_mem.c index 3f5645508..0900712db 100644 --- a/frame/base/bli_mem.c +++ b/frame/base/bli_mem.c @@ -154,8 +154,7 @@ void bli_mem_acquire_m( siz_t req_size, pool_index = bli_packbuf_index( buf_type ); pool = &pools[ pool_index ]; - // Perform error checking, if enabled. - if ( bli_error_checking_is_enabled() ) + // Unconditionally perform error checking on the memory pool. { err_t e_val;