[OpenSIPS-Devel] [opensips] mem/module_info: adapt code to shared memory initialisation change (#724)

Răzvan Crainea notifications at github.com
Tue Feb 23 16:47:24 CET 2016


> +}
> +
> +int alloc_group_stat(void) {
> +	int size_prealoc, j, one_full_entry, groups;
> +	char *start;
> +	struct module_info* new_stats_vec;
> +#ifndef SHM_SHOW_DEFAULT_GROUP
> +	groups = mem_free_idx - 1;
> +#else
> +	groups = mem_free_idx;
> +#endif
> +
> +	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

I think this flag is obsolete. Please check if this flag is still present in the latest version.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/724/files#r53798507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160223/374e96b5/attachment.htm>


More information about the Devel mailing list