Skip to content

Commit

Permalink
Fixed expantion of shm_info() for HP_MALLOC
Browse files Browse the repository at this point in the history
Reported by Nick Altmann
Closes #1240

(cherry picked from commit cec2d66)
  • Loading branch information
bogdan-iancu committed Jan 5, 2018
1 parent 6954ffd commit 57065ca
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions mem/shm_mem.h
Expand Up @@ -616,12 +616,16 @@ inline static void shm_status(void)
}


#define shm_info(mi) \
do{\
shm_lock(); \
MY_MEMINFO(shm_block, mi); \
shm_unlock(); \
}while(0)
inline static void shm_info(struct mem_info* mi)
{
#ifndef HP_MALLOC
shm_lock();
#endif
MY_MEMINFO(shm_block, mi);
#ifndef HP_MALLOC
shm_unlock();
#endif
}

/*
* performs a full shared memory pool scan for any corruptions or inconsistencies
Expand Down

0 comments on commit 57065ca

Please sign in to comment.