mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
1955. [bug] Pre-allocate the cache cleaning interator. [RT #14998]
Fix the CLEANER_IDLE macro to make this change complete. [RT #15815]
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: cache.c,v 1.67 2006/01/06 00:01:44 marka Exp $ */
|
/* $Id: cache.c,v 1.68 2006/01/26 22:56:04 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -76,7 +76,6 @@ typedef enum {
|
|||||||
* Convenience macros for comprehensive assertion checking.
|
* Convenience macros for comprehensive assertion checking.
|
||||||
*/
|
*/
|
||||||
#define CLEANER_IDLE(c) ((c)->state == cleaner_s_idle && \
|
#define CLEANER_IDLE(c) ((c)->state == cleaner_s_idle && \
|
||||||
(c)->iterator == NULL && \
|
|
||||||
(c)->resched_event != NULL)
|
(c)->resched_event != NULL)
|
||||||
#define CLEANER_BUSY(c) ((c)->state == cleaner_s_busy && \
|
#define CLEANER_BUSY(c) ((c)->state == cleaner_s_busy && \
|
||||||
(c)->iterator != NULL && \
|
(c)->iterator != NULL && \
|
||||||
|
Reference in New Issue
Block a user