mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
2882. [bug] Remove memory context from list of active contexts
before clearing 'magic'. [RT #21274]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
2882. [bug] Remove memory context from list of active contexts
|
||||||
|
before clearing 'magic'. [RT #21274]
|
||||||
|
|
||||||
2881. [bug] Reduce the amount of time the rbtdb write lock
|
2881. [bug] Reduce the amount of time the rbtdb write lock
|
||||||
is held when closing a version. [RT #21198]
|
is held when closing a version. [RT #21198]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mem.c,v 1.155 2010/03/04 23:50:34 tbox Exp $ */
|
/* $Id: mem.c,v 1.156 2010/05/12 00:46:55 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -1050,14 +1050,14 @@ destroy(isc__mem_t *ctx) {
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
isc_ondestroy_t ondest;
|
isc_ondestroy_t ondest;
|
||||||
|
|
||||||
ctx->common.impmagic = 0;
|
|
||||||
ctx->common.magic = 0;
|
|
||||||
|
|
||||||
LOCK(&lock);
|
LOCK(&lock);
|
||||||
ISC_LIST_UNLINK(contexts, ctx, link);
|
ISC_LIST_UNLINK(contexts, ctx, link);
|
||||||
totallost += ctx->inuse;
|
totallost += ctx->inuse;
|
||||||
UNLOCK(&lock);
|
UNLOCK(&lock);
|
||||||
|
|
||||||
|
ctx->common.impmagic = 0;
|
||||||
|
ctx->common.magic = 0;
|
||||||
|
|
||||||
INSIST(ISC_LIST_EMPTY(ctx->pools));
|
INSIST(ISC_LIST_EMPTY(ctx->pools));
|
||||||
|
|
||||||
#if ISC_MEM_TRACKLINES
|
#if ISC_MEM_TRACKLINES
|
||||||
|
Reference in New Issue
Block a user