mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-22 14:49:20 -04:00
Print the memory context when printing overmem limits
When printing the memory context going into or out of the overmem condition, also print the memory context name for easier debugging.
This commit is contained in:
parent
7682bc21a9
commit
51d7efbfb4
1 changed files with 4 additions and 4 deletions
|
|
@ -845,8 +845,8 @@ isc_mem_isovermem(isc_mem_t *ctx) {
|
|||
|
||||
if ((isc_mem_debugging & ISC_MEM_DEBUGUSAGE) != 0) {
|
||||
fprintf(stderr,
|
||||
"overmem mctx %p inuse %zu hi_water %zu\n", ctx,
|
||||
inuse, hiwater);
|
||||
"overmem %s mctx %p inuse %zu hi_water %zu\n",
|
||||
ctx->name, ctx, inuse, hiwater);
|
||||
}
|
||||
|
||||
atomic_store_relaxed(&ctx->stat[tid].is_overmem, true);
|
||||
|
|
@ -865,8 +865,8 @@ isc_mem_isovermem(isc_mem_t *ctx) {
|
|||
|
||||
if ((isc_mem_debugging & ISC_MEM_DEBUGUSAGE) != 0) {
|
||||
fprintf(stderr,
|
||||
"overmem mctx %p inuse %zu lo_water %zu\n", ctx,
|
||||
inuse, lowater);
|
||||
"overmem %s mctx %p inuse %zu lo_water %zu\n",
|
||||
ctx->name, ctx, inuse, lowater);
|
||||
}
|
||||
atomic_store_relaxed(&ctx->stat[tid].is_overmem, false);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue