Skip to content

Commit

Permalink
module_info.c: change obsolete flag
Browse files Browse the repository at this point in the history
(cherry picked from commit db310d8)
  • Loading branch information
ionel-cerghit authored and razvancrainea committed Jan 18, 2017
1 parent 2fd6fad commit b513123
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.conf.template
Expand Up @@ -88,5 +88,6 @@ DEFS+= -DF_MALLOC #Fast memory allocator with minimal runtime overhead
#DEFS+= -DNOSMP #Do not use SMP sompliant locking. Faster but won't work on SMP machines
#DEFS+= -DEXTRA_DEBUG #Compiles in some extra debugging code
#DEFS+= -DORACLE_USRLOC #Uses Oracle compatible queries for USRLOC
#DEFS+= -DSHM_EXTRA_STATS #Needed when using the mem-group core parameter

PREFIX=/usr/local/
4 changes: 2 additions & 2 deletions mem/module_info.c
Expand Up @@ -99,7 +99,7 @@ int alloc_group_stat(void) {
one_full_entry = 3 * (sizeof(stat_var) + sizeof(stat_val));
size_prealoc = groups * sizeof(struct module_info) + groups * one_full_entry;

#ifndef DBG_QM_MALLOC
#ifndef DBG_MALLOC
new_stats_vec = MY_MALLOC_UNSAFE(shm_block, size_prealoc);
#else
new_stats_vec = MY_MALLOC_UNSAFE(shm_block, size_prealoc, __FILE__, __FUNCTION__, __LINE__ );
Expand Down Expand Up @@ -133,7 +133,7 @@ int alloc_group_stat(void) {
#endif

if(memory_mods_stats){
#ifndef DBG_QM_MALLOC
#ifndef DBG_MALLOC
MY_FREE_UNSAFE(shm_block, (void*)memory_mods_stats);
#else
MY_FREE_UNSAFE(shm_block, (void*)memory_mods_stats, __FILE__, __FUNCTION__, __LINE__ );
Expand Down

0 comments on commit b513123

Please sign in to comment.