Compare commits

...

3 Commits

Author SHA1 Message Date
Witold Kręcicki
0d6c4ce64a TEST: use jemalloc 2019-05-16 11:33:07 +02:00
Witold Kręcicki
a6b12b31fe TEST: use malloc/free directly, no accounting 2019-05-16 11:28:36 +02:00
Witold Kręcicki
5ac49fcb9d TEST: disable tracklines 2019-05-16 11:11:58 +02:00
2 changed files with 6 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ typedef void (*isc_memfree_t)(void *, void *);
* allocation and freeing by file and line number.
*/
#ifndef ISC_MEM_TRACKLINES
#define ISC_MEM_TRACKLINES 1
#define ISC_MEM_TRACKLINES 0
#endif
/*%

View File

@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <stddef.h>
#include <limits.h>
#include <jemalloc/jemalloc.h>
#include <isc/bind9.h>
#include <isc/hash.h>
@@ -468,6 +469,8 @@ more_frags(isc__mem_t *ctx, size_t new_size) {
static inline void *
mem_getunlocked(isc__mem_t *ctx, size_t size) {
return (malloc(size));
size_t new_size = quantize(size);
void *ret;
@@ -545,6 +548,8 @@ check_overrun(void *mem, size_t size, size_t new_size) {
/* coverity[+free : arg-1] */
static inline void
mem_putunlocked(isc__mem_t *ctx, void *mem, size_t size) {
free(mem);
return;
size_t new_size = quantize(size);
if (new_size >= ctx->max_size) {