Lines Matching refs:config
194 if (g_debug->config().options() & BACKTRACE_FULL) { in BacktraceAndLog()
219 if (g_debug->config().options() & FREE_TRACK) { in LogError()
226 if (g_debug->config().options() & ABORT_ON_ERROR) { in LogError()
277 if (g_debug->config().options() & FRONT_GUARD) { in InitHeader()
279 memset(guard, g_debug->config().front_guard_value(), g_debug->config().front_guard_bytes()); in InitHeader()
282 if (g_debug->config().options() & REAR_GUARD) { in InitHeader()
284 memset(guard, g_debug->config().rear_guard_value(), g_debug->config().rear_guard_bytes()); in InitHeader()
328 if (g_debug->config().options() & VERBOSE) { in debug_initialize()
349 if (g_debug->config().options() & FREE_TRACK) { in debug_finalize()
353 if (g_debug->config().options() & LEAK_TRACK) { in debug_finalize()
357 if ((g_debug->config().options() & BACKTRACE) && g_debug->config().backtrace_dump_on_exit()) { in debug_finalize()
359 g_debug->config().backtrace_dump_prefix().c_str(), in debug_finalize()
390 if (!(g_debug->config().options() & BACKTRACE)) { in debug_get_malloc_leak_info()
420 if ((g_debug->config().options() & BACKTRACE) && g_debug->pointer->ShouldDumpAndReset()) { in InternalMalloc()
422 "%s.%d.txt", g_debug->config().backtrace_dump_prefix().c_str(), getpid()) in InternalMalloc()
459 if (g_debug->config().options() & FILL_ON_ALLOC) { in InternalMalloc()
461 size_t fill_bytes = g_debug->config().fill_on_alloc_bytes(); in InternalMalloc()
463 memset(pointer, g_debug->config().fill_alloc_value(), bytes); in InternalMalloc()
479 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_malloc()
487 if ((g_debug->config().options() & BACKTRACE) && g_debug->pointer->ShouldDumpAndReset()) { in InternalFree()
489 "%s.%d.txt", g_debug->config().backtrace_dump_prefix().c_str(), getpid()) in InternalFree()
500 if (g_debug->config().options() & FRONT_GUARD) { in InternalFree()
505 if (g_debug->config().options() & REAR_GUARD) { in InternalFree()
518 if (g_debug->config().options() & FILL_ON_FREE) { in InternalFree()
519 size_t fill_bytes = g_debug->config().fill_on_free_bytes(); in InternalFree()
521 memset(pointer, g_debug->config().fill_free_value(), bytes); in InternalFree()
528 if (g_debug->config().options() & FREE_TRACK) { in InternalFree()
554 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_free()
630 if (g_debug->config().options() & FILL_ON_ALLOC) { in debug_memalign()
632 size_t fill_bytes = g_debug->config().fill_on_alloc_bytes(); in debug_memalign()
634 memset(pointer, g_debug->config().fill_alloc_value(), bytes); in debug_memalign()
637 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_memalign()
655 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_realloc()
666 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_realloc()
675 if (g_debug->config().options() & EXPAND_ALLOC) { in debug_realloc()
676 real_size += g_debug->config().expand_alloc_bytes(); in debug_realloc()
706 if (g_debug->config().options() & REAR_GUARD) { in debug_realloc()
710 memset(g_debug->GetRearGuard(header), g_debug->config().rear_guard_value(), in debug_realloc()
711 g_debug->config().rear_guard_bytes()); in debug_realloc()
747 if (g_debug->config().options() & FILL_ON_ALLOC) { in debug_realloc()
749 if (bytes > g_debug->config().fill_on_alloc_bytes()) { in debug_realloc()
750 bytes = g_debug->config().fill_on_alloc_bytes(); in debug_realloc()
754 g_debug->config().fill_alloc_value(), bytes - prev_size); in debug_realloc()
758 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_realloc()
810 if (g_debug->config().options() & RECORD_ALLOCS) { in debug_calloc()
929 if (!(g_debug->config().options() & BACKTRACE)) { in debug_malloc_backtrace()
990 if (!(g_debug->config().options() & BACKTRACE)) { in debug_write_malloc_leak_info()